uj5u.com熱心網友回復:
下載谷歌的jar失敗根目錄的build.gradle的2個repositories改成如下:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://jitpack.io' }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://jitpack.io' }
google()
jcenter()
}
}
然后重新build就行了
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/88441.html
標籤:Android
下一篇:求解android
