解決Android studio 3.6.1 出現(xiàn)Cause: unable to find valid certification path to requested target 報(bào)錯(cuò)的問(wèn)題
1、首先修改根目錄下的build.gradle成如下格式
// Top-level build file where you can add configuration options common to all sub-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: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}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、然后點(diǎn)擊sync project with gradle files,如下圖所示
3、 如果再次報(bào)錯(cuò)請(qǐng)清理緩存并重啟AS,方法如下圖
4、(最重要的步驟)如果再次報(bào)錯(cuò),請(qǐng)不厭其煩的且厚不要臉的多次點(diǎn)擊這個(gè)小象(即重復(fù)第二步操作),正常情況下奇跡會(huì)發(fā)生的。(反正我是見(jiàn)證該奇跡了)
到此這篇關(guān)于解決Android studio 3.6.1 出現(xiàn)Cause: unable to find valid certification path to requested target 報(bào)錯(cuò)的問(wèn)題的文章就介紹到這了,更多相關(guān)Android studio 3.6.1 報(bào)錯(cuò)內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. 使用css實(shí)現(xiàn)全兼容tooltip提示框2. SpringBoot快速集成jxls-poi(自定義模板,支持本地文件導(dǎo)出,在線文件導(dǎo)出)3. 使用ProcessBuilder調(diào)用外部命令,并返回大量結(jié)果4. 通過(guò)工廠模式返回Spring Bean方法解析5. JSP實(shí)現(xiàn)客戶信息管理系統(tǒng)6. 關(guān)于Mysql-connector-java驅(qū)動(dòng)版本問(wèn)題總結(jié)7. python中HTMLParser模塊知識(shí)點(diǎn)總結(jié)8. CSS自定義滾動(dòng)條樣式案例詳解9. python 批量下載bilibili視頻的gui程序10. python:刪除離群值操作(每一行為一類數(shù)據(jù))
