1.1(此方法仅解决我的一次问题,是否可靠仍待测试)可能是由build.grade文件下
` buildscript {
repositories {
jcenter()
google()
}
}`
jcenter()相关文件不能下载引起的,切换为阿里的源之后即可,代码如下
buildscript {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
google()
}
}