Android

关注公众号 jb51net

关闭
首页 > 软件编程 > Android > android studio引用远程仓库下载慢

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

作者:lingchenjie_

这篇文章主要介绍了解决android studio引用远程仓库下载慢(JCenter下载慢),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

本文介绍了解决android studio引用远程仓库下载慢的两种方法,具体如下:

第一种方法

使用开源中国的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/'}
 }

 到此这篇关于解决android studio引用远程仓库下载慢(JCenter下载慢)的文章就介绍到这了,更多相关android studio引用远程仓库下载慢内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

您可能感兴趣的文章:
阅读全文