解决Android studio 3.6.1 出现Cause: unable to find valid certification path to requested target 报错的问题
1、首先修改根目录下的build.gradle成如下格式
//Top-levelbuildfilewhereyoucanaddconfigurationoptionscommontoallsub-projects/modules.
buildscript{
repositories{
maven{url'http://maven.aliyun.com/nexus/content/repositories/google'}
maven{url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
}
dependencies{
classpath'com.android.tools.build:gradle:3.6.1'
//NOTE:Donotplaceyourapplicationdependencieshere;theybelong
//intheindividualmodulebuild.gradlefiles
}
}
allprojects{
repositories{
//google()
//jcenter()
maven{url'http://maven.aliyun.com/nexus/content/repositories/google'}
maven{url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
}
}
2、然后点击syncprojectwithgradlefiles,如下图所示
3、如果再次报错请清理缓存并重启AS,方法如下图
4、(最重要的步骤)如果再次报错,请不厌其烦的且厚不要脸的多次点击这个小象(即重复第二步操作),正常情况下奇迹会发生的。(反正我是见证该奇迹了)
到此这篇关于解决Androidstudio3.6.1出现Cause:unabletofindvalidcertificationpathtorequestedtarget报错的问题的文章就介绍到这了,更多相关Androidstudio3.6.1报错内容请搜索毛票票以前的文章或继续浏览下面的相关文章希望大家以后多多支持毛票票!
声明:本文内容来源于网络,版权归原作者所有,内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:czq8825#qq.com(发邮件时,请将#更换为@)进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。