When I opened android studio today, it showed me the following errors:
I just replace the project build.gradle like below. And it works.
buildscript {
...
repositories {
mavenLocal()
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven { url "https://jitpack.io" }
mavenCentral() // jcenter() works as well because it pulls from Maven Central
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
...
}
allprojects {
repositories {
mavenLocal()
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven { url "https://jitpack.io" }
mavenCentral() // jcenter() works as well because it pulls from Maven Central
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
}