Android Studio导入,打开项目慢的问题解决方法集合

Jcenter下载jar包慢##

网上看到一个解决方法:http://blog.csdn.net/linglingchenchen/article/details/62236723
按这里面讲的用阿里源的方法试了一下,似乎有效,后面遇到了再验证一下。

一直显示Refresh的问题

网上有分析说是在下载gradle文件,一种解决方法就是自己手工下载了放到对应目录下,上次有个项目用这个方法解决了问题。 但是今天这个项目还是遇到一直refresh的问题,界面显示是在“Resolve Dependence”,google一把,找到一个方法:(https://stackoverflow.com/questions/36529301/android-build-gradle-is-too-slow-dependency-resolution)见5楼。

he problem is gradlecan not connect to center repository in some country. When you create a new project or import , your center repository is jcenter() by default and whenever you want to build or sync or add new external dependency, gradle is going to connect to https://bintray.com/ but it can not and the building process is going to wait till connect to jcenter(), so this process might take long time ( +30 min ) , even you can not add new dependency .
解决方法就是
Final step and most important one is change your jcenter() to mavenCentral()

尝试了一下,果然有效果。所以在想,以后的项目,是不是都不要用jcenter了,还需要进一步验证。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值