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'

這三個依賴全部註釋了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章