解決android studio 3.0 加載項目過慢問題--maven倉庫選擇
今天用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ù)大家的!
相關(guān)文章
AndroidStduio3.0 使用gradle將module打包jar文件的方法
這篇文章主要介紹了AndroidStduio3.0 使用gradle將module打包jar文件的方法,非常不錯,具有一定的參考借鑒價值,需要的朋友可以參考下2019-04-04
Flutter開發(fā)之對角棋游戲?qū)崿F(xiàn)實例詳解
這篇文章主要為大家介紹了Flutter開發(fā)之對角棋游戲?qū)崿F(xiàn)實例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2022-11-11
Android開發(fā)Jetpack組件DataBinding用例詳解
這篇文章主要為大家介紹了Android開發(fā)Jetpack組件DataBinding的使案用例詳解說明,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步2022-02-02
如何在Android中實現(xiàn)漸顯按鈕的左右滑動效果
本篇文章是對在Android中實現(xiàn)漸顯按鈕的左右滑動效果進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下2013-06-06
Android百度地圖實現(xiàn)搜索和定位及自定義圖標(biāo)繪制并點擊時彈出泡泡
這篇文章主要介紹了Android百度地圖實現(xiàn)搜索和定位及自定義圖標(biāo)繪制并點擊時彈出泡泡的相關(guān)資料,需要的朋友可以參考下2016-01-01
Android自定義狀態(tài)欄顏色與應(yīng)用標(biāo)題欄顏色一致
看IOS上的應(yīng)用,應(yīng)用中狀態(tài)欄的顏色總能與應(yīng)用標(biāo)題欄顏色保持一致,用戶體驗很不錯,對于這種效果怎么實現(xiàn)的呢?下面小編給大家分享android自定義狀態(tài)欄顏色與應(yīng)用標(biāo)題欄顏色一致的實現(xiàn)方法,一起看看吧2016-09-09

