安裝了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
一個個解決
第一個問題參考了很多文章,最後應該是這個成功了,因爲用了太多的方法,最後不知道怎麼就好了
用了文中的方法二
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坑多啊。