admin管理员组文章数量:1130349
解决AndroidStudio-sync下载太慢的问题
在项目的build.gradle中加入,然后再sync即可
maven{ url "http://maven.aliyun/nexus/content/groups/public/"}
完整代码
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven{ url "http://maven.aliyun/nexus/content/groups/public/"}
//这个google地址下载太慢了,把上面⬆️的代码加上即可
maven {
url 'https://maven.google/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven{ url "http://maven.aliyun/nexus/content/groups/public/"}
//这个google地址下载太慢了,把上面⬆️的代码加上即可
maven {
url 'https://maven.google/'
name 'Google'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
参考:解决Android studio 下载慢问题
解决AndroidStudio-sync下载太慢的问题
在项目的build.gradle中加入,然后再sync即可
maven{ url "http://maven.aliyun/nexus/content/groups/public/"}
完整代码
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven{ url "http://maven.aliyun/nexus/content/groups/public/"}
//这个google地址下载太慢了,把上面⬆️的代码加上即可
maven {
url 'https://maven.google/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven{ url "http://maven.aliyun/nexus/content/groups/public/"}
//这个google地址下载太慢了,把上面⬆️的代码加上即可
maven {
url 'https://maven.google/'
name 'Google'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
参考:解决Android studio 下载慢问题
本文标签: 太慢AndroidStudiosync
版权声明:本文标题:解决AndroidStudio-sync下载太慢的问题 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754939892a2744102.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论