Last active
December 8, 2021 14:37
-
-
Save emedinaa/a6ce06404e4e84db1bc7cd1151499db7 to your computer and use it in GitHub Desktop.
kotlin version conflicts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error : | |
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: | |
/Users/xx/.gradle/caches/transforms-2/files-2.1/5ddeaae6ee15f19826b9dd5f1cf7b0a4/jetified-kotlin-stdlib-jdk7-1.3.72.jar (version 1.3) | |
/Users/xx/.gradle/caches/transforms-2/files-2.1/3951109aac4671bfe341f4dc43e131ef/jetified-kotlin-stdlib-1.4.32.jar (version 1.4) | |
/Users/xx/.gradle/caches/transforms-2/files-2.1/1d67f6842b59bd1bd3d06c3bca4e4ac4/jetified-kotlin-stdlib-common-1.4.32.jar (version 1.4) | |
Inspect dependencies : | |
./gradlew :module:dependencies | |
+--- com.google.firebase:firebase-common-ktx:20.0.0 | |
| | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | |
| | +--- com.google.firebase:firebase-common:20.0.0 (*) | |
| | +--- com.google.firebase:firebase-components:17.0.0 (*) | |
| | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72 | |
| | \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.72 -> 1.4.32 (*) | |
Fix : | |
android { | |
configurations.all { | |
resolutionStrategy.eachDependency { details -> | |
if (details.requested.group == 'org.jetbrains.kotlin' | |
&& !details.requested.name.contains('jetified-kotlin-stdlib-jdk7') ) { | |
details.useVersion '1.4.32' | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment