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.
在这里插入图片描述
在这里插入图片描述
最后解决的方式是:
在这里插入图片描述
将这个依赖;implementation “androidx.core:core-ktx:+”
去掉就可以编译了;

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

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

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

  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值