AndroidStudio3.6.3新版本遇到的坑

安装了as3.6.3新版本,遇到的坑,搞了一天半,终于解决。

问题:

1)org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException:
Could not resolve all artifacts for configuration ':compiler:classpath'.

2)Gradle Download klin-compiler eded-abl3.1J3ar.慢导致最后超时失败

3)unable to find valid certification path to requested target 

一个个解决

第一个问题参考了很多文章,最后应该是这个成功了,因为用了太多的方法,最后不知道怎么就好了

https://blog.csdn.net/ly_xiamu/article/details/105966576?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1

用了文中的方法二

1.添加了阿里的maven。 2.然后在gradle\wrapper\gradle-wrapper.properties里把distributionUrl换成你本地的。

maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }

 

接下来出现了第二个问题

下载不下来并且超慢

这里我开了热点参考了https://blog.csdn.net/qq_40067488/article/details/104896201

按这个方法成功了

然后就出现了第三个问题

unable to find valid certification path to requested target

参考了这篇文章https://blog.csdn.net/weixin_43766753/article/details/102527228

用了方法二

清缓存,重启

然后

最后终于跑起来了。。。

说的很轻松,但是解决了一天半才搞好,AS坑多啊。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值