Maven:
${user.dir}/.m2/settings.xml
<mirror>
<id>alimaven</id>
<mirrorOf>*</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
Android Studio:
${user.dir}/.gradle/init.gradle
allprojects {
repositories {
maven {
name "aliyun maven"
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
}
}