gradle問題彙總

問題:
從SVN下載到本地後,gradle沒法同步,報錯以下:
Failed to resolve: support-core-utils
Failed to resolve: support-media-compat
Failed to resolve: support-compat
解決:
修改app/build.gradle文件
implementation 'com.android.support:cardview-v7:27.0.2'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support:customtabs:27.0.2'
implementation 'com.android.support:support-v13:27.0.2'
改成
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:support-v13:27.1.1'

而後執行build->make project,彈出對話框時,選updateandroid

相關文章
相關標籤/搜索