Android 中使用AndroidX

https://developer.android.google.cn/jetpack/androidx/migrate

Google的升级指导,如果是旧的项目,请手动搜索库手动替换:例如把

com.android.support:appcompat-v7替换成androidx.appcompat:appcompat:1.0.0

我有一个目前有一个错误没有找到

报ERROR: [TAG] Failed to resolve variable '${junit.version}'我把

//    testImplementation 'junit:junit:4.12'
//    androidTestImplementation 'com.android.support.test:runner:1.0.2'
//    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

这三个依赖全部注释了

猜你喜欢

转载自blog.csdn.net/buyaoshitududongwo/article/details/85229496