问题解决了,原因是第三方库中引入kotlin的问题,androidx.core:core-ktx:+的问题,
依赖里面添加了implementation "androidx.core:core-ktx:+" 由于没有写版本号,
估计是自动找了比较高的,然后出错的。
解决方案:
换成implementation "androidx.core:core-ktx:1.3.2",可以编译通过。
我的gradle版本是distributionUrl=https\://http://services.gradle.org/distributions/gradle-6.6.1-all.zip,classpath 'com.android.tools.build:gradle:4.0.1'。
由于用的+号会引入最新的androidx.core:core-,估计昨天官方有更新。
作者:匿名用户
链接:https://www.zhihu.com/question/484282465/answer/2100473250
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
感谢知乎上的机油