解決Android studio 3.6.1 出現(xiàn)Cause: unable to find valid certification path to requested target 報(bào)錯(cuò)的問題
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ā)生的。(反正我是見證該奇跡了)
到此這篇關(guān)于解決Android studio 3.6.1 出現(xiàn)Cause: unable to find valid certification path to requested target 報(bào)錯(cuò)的問題的文章就介紹到這了,更多相關(guān)Android studio 3.6.1 報(bào)錯(cuò)內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. 在Android中使用WebSocket實(shí)現(xiàn)消息通信的方法詳解2. 淺談python出錯(cuò)時(shí)traceback的解讀3. ASP 信息提示函數(shù)并作返回或者轉(zhuǎn)向4. Python importlib動(dòng)態(tài)導(dǎo)入模塊實(shí)現(xiàn)代碼5. windows服務(wù)器使用IIS時(shí)thinkphp搜索中文無效問題6. 利用promise及參數(shù)解構(gòu)封裝ajax請(qǐng)求的方法7. python matplotlib:plt.scatter() 大小和顏色參數(shù)詳解8. .NET中l(wèi)ambda表達(dá)式合并問題及解決方法9. JSP數(shù)據(jù)交互實(shí)現(xiàn)過程解析10. Nginx+php配置文件及原理解析
