欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

解決android studio 3.0 加載項目過慢問題--maven倉庫選擇

 更新時間:2017年11月11日 11:13:03   投稿:mrr  
這篇文章主要介紹了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)文章

最新評論