androidstudio 编译太慢

在工程build.gradle下添加阿里云 buildscript { repositories { jcenter() google() maven{ url 'http://maven.aliyun.com/nexus/content/groups/google'} maven{ url 'http://maven.aliyun.com/nexus/content/groups/jcenter'} } dependencies { classpath 'com.android.tools.build:gradle:3.2.0'// NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }allprojects { repositories { jcenter() google() maven{ url 'http://maven.aliyun.com/nexus/content/groups/google'} maven{ url 'http://maven.aliyun.com/nexus/content/groups/jcenter'} } }

    推荐阅读