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'
這三個依賴全部註釋了