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

隔离一段时间没打开安卓项目了;打开编译报错;
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.
在这里插入图片描述
ktolin的android项目编译突然报错w: Runtime JAR files in the classpath should have the same version. These file_第1张图片
最后解决的方式是:
ktolin的android项目编译突然报错w: Runtime JAR files in the classpath should have the same version. These file_第2张图片
将这个依赖;implementation “androidx.core:core-ktx:+”
去掉就可以编译了;

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

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

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

你可能感兴趣的:(解决问题小结,笔记,android,studio,kotlin)