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,弹出对话框时,选update