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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

lingchenjie_   2021-04-21 我要评论

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

猜您喜欢

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们