Android Studio Gradle加载与同步缓慢
加载同步缓慢是因为gradle服务器是国外的,我们只需将Android试图下的“build.gradle”里添加阿里云服务器,同步就会很快。
PS:
classpath 'com.android.tools.build:gradle:3.5.0'(“gradle:”后的数字为你Android Studio 版本)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in t