解決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. moment轉(zhuǎn)化時(shí)間戳出現(xiàn)Invalid Date的問(wèn)題及解決2. python爬蟲(chóng)實(shí)戰(zhàn)之制作屬于自己的一個(gè)IP代理模塊3. 使用JSP技術(shù)實(shí)現(xiàn)一個(gè)簡(jiǎn)單的在線測(cè)試系統(tǒng)的實(shí)例詳解4. 為什么你的android代碼寫(xiě)得這么亂5. Android的線程和線程池6. Python中內(nèi)建模塊collections如何使用7. Python中matplotlib如何改變畫(huà)圖的字體8. python實(shí)現(xiàn)坦克大戰(zhàn)9. 開(kāi)發(fā)效率翻倍的Web API使用技巧10. 跟我學(xué)XSL(一)第1/5頁(yè)
