resource android:attr/lStar not

2022-12-05  本文已影响0人  是阿亮鸭

原因:第三方依赖库里使用了高版本的androdx.core,而项目本身使用的版本低于该版本

解决:强制使用固定旧版本的androidx.core

app - build.gradle - defaultConfig节点里添加:
configurations.all {resolutionStrategy { force 'androidx.core:core:1.6.0' }}

*另若错误信息为以下这串也可以尝试以上方法:
The minCompileSdk (31) specified in XXXXXX is greater than this module's compileSdkVersion (android-29). Dependency: androidx.core:core:1.7.0.

上一篇 下一篇

猜你喜欢

热点阅读