RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
解决androidstudio3.0加载项目过慢问题--maven仓库选择

今天用android studio 3.0打开项目时发现一直在谷歌的maven仓库加载

创新互联主要从事网站设计制作、做网站、网页设计、企业做网站、公司建网站等业务。立足成都服务和林格尔,十余年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:18982081108

解决android studio 3.0 加载项目过慢问题--maven仓库选择

卡到这不动了,看了下maven仓库的配置发现:

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

后来在网上找了个阿里云上面的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
}

这之后就发现加载快多了。

总结

以上所述是小编给大家介绍的解决android studio 3.0 加载项目过慢问题--maven仓库选择,希望对大家有所帮助,如果大家有任何疑问欢迎给我留言,小编会及时回复大家的!


新闻名称:解决androidstudio3.0加载项目过慢问题--maven仓库选择
新闻来源:http://scyingshan.cn/article/ieoejs.html