解决android studio引用远程仓库下载慢(转)


解决android studio引用远程仓库下载慢(JCenter下载慢)

 

第一种方法

使用开源中国的maven库

阿里云的(速度飞快):http://maven.aliyun.com/nexus/content/groups/public/

替换项目根目录下build.gradle中的

    repositories { jcenter() }

为:

    repositories { maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'} }

第二种方法

修改https为 http协议下载

http://jcenter/bintray.com/

替换项目根目录下build.gradle中的

    repositories { jcenter() }

为:

    repositories { jcenter(){ url 'http://jcenter.bintray.com/'} }


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM