android stdio 安装后gradle 编译失败,设置代理不管用
Posted hbb0b0
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了android stdio 安装后gradle 编译失败,设置代理不管用相关的知识,希望对你有一定的参考价值。
- 去掉代理
2 去掉build.gradle中的 google,与jcenter,替换为阿里云
//google()
//jcenter()
替换为
maven { url \'https://maven.aliyun.com/nexus/content/repositories/google\' }
maven{ url \'http://maven.aliyun.com/nexus/content/groups/public/\' }
maven{ url \'http://maven.aliyun.com/nexus/content/repositories/jcenter\'}
以上是关于android stdio 安装后gradle 编译失败,设置代理不管用的主要内容,如果未能解决你的问题,请参考以下文章