I haven’t opened the Android project for a while; Open compilation and report an error
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
e: D:/software/Gradle_ workplace/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.10/6b84d926e28493be69daf673e40076f89492ef7/kotlin-stdlib-common-1.5.10.jar!/ META-INF/kotlin-stdlib-common.kotlin_ Module: module was compiled with an incompatible version of kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.13.
insert a picture description here
the final solution is:
add this dependency; Implementation “androidx. Core: core KTX: +”
remove it and you can compile it;
Feeling is conflict; Moreover, this feeling at the beginning of Android x is prone to conflict sometimes. After all, the dependence on the new package name feels unstable. If there is a problem in the future, just lean in this direction;
The boss who knows the problem can also give advice;
Environment:
kotlin version is 1.3.11
JDK is 1.8
gradle is 4.6
Android studio is 4.1.3
Read More:
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Android studio “sync project with gradle files” button disappears
- The introduction of third-party jar package in mavn project results in classnotfoundexception
- The binary version of its metadata is 1.5.1, expected version is 1.1.16
- Zip to decompress the jar package, like the add file in the jar package
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- How to select the jar package version for Maven package when the jar package versions referenced by multiple modules are inconsistent
- How to turn your project into a jar package in idea
- Update project manually_ Solution of too large jar package in springboot
- The problem of mobile hybrid development RN Android deployment appears Unsupported class file major version xx
- To solve the error of T2a w2a a2w, error c2065:_ LPW “: undeclared identifier
- Error: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
- android studio Error Gradle project sync failed. Please fix your project and try again
- Solution to error opening trace file: no such file or directory (2) in Android
- Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:\….\0.jar
- Building Eureka_ Server error: application failed to start with classpath:file :/C:/ProgramFiles/Java/jdk
- The problem of MAC switching JDK version and RN Android JDK version leads to compilation failure. Solve it
- Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.
- Error in the project tag in the POM file of Maven project: failure to transfer
- Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its