首页 > 代码库 > Android studio下载依赖包很慢

Android studio下载依赖包很慢

 build gradle文件

buildscript {
repositories {
//jcenter()
maven { url ‘http://maven.oschina.net/content/groups/public/‘ }
}
dependencies {
classpath ‘com.android.tools.build:gradle:2.2.2‘

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

 或者

buildscript {
repositories {
jcenter()
}
dependencies {
classpath ‘com.android.tools.build:gradle:2.2.2‘
classpath ‘com.github.dcendents:android-maven-gradle-plugin:1.5‘
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

Android studio下载依赖包很慢