ktolin的android项目编译突然报错w: Runtime JAR files in the classpath should have the same version. These file

moonjerx
2023-01-06 / 0 评论 / 145 阅读 / 正在检测是否收录...

编译报错

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.

lck3hkf1.png
lck3hoza.png
将这个依赖;implementation “androidx.core:core-ktx:+”
去掉就可以编译了;

感觉就是冲突了;而且这种androidx开头的感觉有些时候容易有冲突问题,毕竟是新包名依赖感觉不稳定,以后有问题就往这个方向靠就行了;

知道问题的大佬也可以指点一下;

环境:
kotlin版本是1.3.11的;
jdk是1.8的;
gradle是4.6的;
android studio是4.1.3的

0

评论 (0)

取消

您的IP: