今天用android studio 3.0打開項目時發(fā)現(xiàn)一直在谷歌的maven倉庫加載

卡到這不動了,看了下maven倉庫的配置發(fā)現(xiàn):
buildscript { repositories { jcenter() maven { url 'https://maven.google.com' name 'Google' } google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}allprojects { repositories { jcenter() maven { url 'https://maven.google.com' name 'Google' } google() }}task clean(type: Delete) { delete rootProject.buildDir}maven倉庫的路徑居然是:https://maven.google.com
后來在網(wǎng)上找了個阿里云上面的maven地址,配置如下:
buildscript { repositories { jcenter() maven { url 'http://maven.aliyun.com/nexus/content/groups/public'// name 'Google' } google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.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.com/nexus/content/groups/public'// name 'Google' } google() }}task clean(type: Delete) { delete rootProject.buildDir}這之后就發(fā)現(xiàn)加載快多了。
總結(jié)
以上所述是小編給大家介紹的解決android studio 3.0 加載項目過慢問題--maven倉庫選擇,希望對大家有所幫助,如果大家有任何疑問歡迎給我留言,小編會及時回復(fù)大家的!
新聞熱點
疑難解答