最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

解決android studio 3.0 加載項(xiàng)目過慢問題--maven倉庫選擇

 更新時(shí)間:2017年11月11日 11:13:03   投稿:mrr  
這篇文章主要介紹了android studio 3.0 加載項(xiàng)目過慢問題解決方案---maven倉庫選擇,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下

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

卡到這不動(dòng)了,看了下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)上找了個(gè)阿里云上面的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 加載項(xiàng)目過慢問題--maven倉庫選擇,希望對(duì)大家有所幫助,如果大家有任何疑問歡迎給我留言,小編會(huì)及時(shí)回復(fù)大家的!

相關(guān)文章

最新評(píng)論

乌兰察布市| 灵川县| 四会市| 乌兰浩特市| 邛崃市| 湘乡市| 日土县| 海南省| 玉溪市| 乌兰察布市| 福贡县| 大宁县| 壶关县| 竹北市| 阳东县| 长武县| 延长县| 棋牌| 闽清县| 错那县| 乡宁县| SHOW| 米易县| 姜堰市| 宁都县| 磴口县| 金昌市| 黎城县| 舞钢市| 唐山市| 宜州市| 乌鲁木齐县| 蒙自县| 长治市| 曲沃县| 九台市| 宁阳县| 平阴县| 边坝县| 栾城县| 长武县|