Solve the slow download of android studio reference remote warehouse of JCenter slow download
- 2021-11-24 03:03:36
- OfStack
This article introduces two methods to solve the slow download of android studio reference remote warehouse, as follows:
Method 1
Use open source China's maven library
Alibaba Cloud's (Fast): http://maven.aliyun.com/nexus/content/groups/public/
Replace the in build. gradle under the project root directory
repositories {
jcenter()
}
Is:
repositories {
maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
Method 2
Modify https to download http protocol
http://jcenter/bintray.com/
Replace the in build. gradle under the project root directory
repositories {
jcenter()
}
Is:
repositories {
jcenter(){ url 'http://jcenter.bintray.com/'}
}