I can't figure out what problem I can get if I have different Kotlin versions in the project and in the dependencies of that project.
Option 1:
- the project include Kotlin
1.3.72 - some libraries (
okhttpfor example) include Kotlin1.4.10. (We now use Kotlin 1.4.x functional interfaces for Authenticator, Interceptor, and others.)
Option 2:
- the project include Kotlin
1.4.0 - some libraries include Kotlin
1.3.71
In option 2 I get next warning:
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
/.gradle/caches/transforms-2/files-2.1/ab41544fa06f7b55dec847efe3b9899c/jetified-kotlin-stdlib-jdk7-1.3.71.jar (version 1.3)
.gradle/caches/transforms-2/files-2.1/a4c6c3b949eb40b555dea1468ae75f87/jetified-kotlin-stdlib-1.4.10.jar (version 1.4)
.gradle/caches/transforms-2/files-2.1/f98f62bf33e752598311020043618780/jetified-kotlin-stdlib-common-1.4.10.jar (version 1.4)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath