android {
compileSdkVersion 28
buildToolsVersion "27.0.3"
....
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
// repositories { maven { url "https://maven.google.com" } }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:28.+'
testCompile 'junit:junit:4.12'
}
在build.gradle添加
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}