记录一下support-compat-25.1.0-runtim

2022-03-22  本文已影响0人  不略

我这个错是项目导入第三方库所导致的解决办法就是把项目的build.gradle中的androidx的依赖copy一份到第三方库的dependencies{}节点下 :

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
} 

最后重新build项目就OK

上一篇 下一篇

猜你喜欢

热点阅读