https://kotlinlang.org logo
#android
Title
# android
a

Ayoub

02/15/2019, 9:27 AM
Hello guys I have a problem compiling a module on release flavour :
Copy code
Cannot find a version of 'org.jetbrains.kotlin:kotlin-stdlib-jdk7' that satisfies the version constraints: 
   Dependency path 'mymodule:unspecified' --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.11' --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.11'
   Dependency path 'mymodule:unspecified' --> 'io.realm:realm-android-kotlin-extensions:5.9.0' --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.50'
   Constraint path 'mymodule:unspecified' --> 'org.jetbrains.kotlin:kotlin-stdlib-jdk7' strictly '1.2.50' because of the following reason: debugRuntimeClasspath uses version 1.2.50
l

louiscad

02/15/2019, 11:09 AM
@Ayoub Your flavor has somehow the version 1.2.50, check the dependencies (with
./gradlew :module:dependencies
or similar), or use a resolution strategy to force the latest Kotlin version to take over in that project, or all the projects. Here's an example of how to use resolution strategy in Gradle: https://github.com/LouisCAD/Splitties/releases/tag/v2.0.0-alpha6
👍 1