Androidstudio3.6.1出現(xiàn)Cause:unabletofindvalidcertificationpathtorequestedtarget報錯怎么辦

小編給大家分享一下Android studio 3.6.1出現(xiàn)Cause: unable to find valid certification path to requested target報錯怎么辦,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

成都做網(wǎng)站、成都網(wǎng)站制作的關(guān)注點不是能為您做些什么網(wǎng)站,而是怎么做網(wǎng)站,有沒有做好網(wǎng)站,給創(chuàng)新互聯(liá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、然后點擊sync project with gradle files,如下圖所示

Android studio 3.6.1出現(xiàn)Cause: unable to find valid certification path to requested target報錯怎么辦

3、 如果再次報錯請清理緩存并重啟AS,方法如下圖

Android studio 3.6.1出現(xiàn)Cause: unable to find valid certification path to requested target報錯怎么辦

4、(最重要的步驟)如果再次報錯,請不厭其煩的且厚不要臉的多次點擊這個小象(即重復(fù)第二步操作),正常情況下奇跡會發(fā)生的。(反正我是見證該奇跡了)

以上是“Android studio 3.6.1出現(xiàn)Cause: unable to find valid certification path to requested target報錯怎么辦”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學(xué)習(xí)更多知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

分享標(biāo)題:Androidstudio3.6.1出現(xiàn)Cause:unabletofindvalidcertificationpathtorequestedtarget報錯怎么辦
分享網(wǎng)址:http://muchs.cn/article30/jcjcso.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信公眾號、定制開發(fā)、網(wǎng)頁設(shè)計公司、移動網(wǎng)站建設(shè)手機網(wǎng)站建設(shè)、外貿(mào)建站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁設(shè)計公司