your project file contains non-ASCII characters
检查路径中是否有中文,并更改之
没有引入buildscript;
buildgradle使用的是谷歌服务器,一些国外的依赖下载极慢,所以引入阿里镜像。
buildscript { repositories { // google() // jcenter() repositories { //google() //jcenter() maven { url 'https://maven.aliyun.com/repository/public/' } maven { url 'https://maven.aliyun.com/repository/google/'} maven { url 'https://maven.aliyun.com/repository/jcenter/'} mavenLocal() mavenCentral() } } dependencies { classpath 'com.android.tools.build:gradle:3.1.0' } } allprojects { repositories { //google() //jcenter() maven { url 'https://maven.aliyun.com/repository/public/' } maven { url 'https://maven.aliyun.com/repository/google/'} maven { url 'https://maven.aliyun.com/repository/jcenter/'} mavenLocal() mavenCentral() } }
速度有了质的飞跃。