您的位置:首页/技术文章
文章详情页

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

浏览:63日期:2022-09-26 08:22:41

本文介绍了解决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引用远程仓库下载慢内容请搜索好吧啦网以前的文章或继续浏览下面的相关文章希望大家以后多多支持好吧啦网!

标签: Android
相关文章: