After the project is created, the dependency loading process is slow, and then the Baidu solution is only recorded here.
- Open the project storage folder, find the build.gradle file in the root directory, and modify the warehouse address inside
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.1"
}
}
allprojects {
repositories {
jcenter()
}
}
buildscript {
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public' }
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.1"
}
}
allprojects {
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public' }
}
}