解決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ò)請清理緩存并重啟AS,方法如下圖
4、(最重要的步驟)如果再次報(bào)錯(cuò),請不厭其煩的且厚不要臉的多次點(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)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
- AndroidStudio報(bào)錯(cuò)Emulator:PANIC:Cannot find AVD system path. Please define ANDROID_SDK_ROOT(解決方案)
- Android studio報(bào)錯(cuò):The emulator process for AVD (xxx) was killed
- Android studio 切換flutterSDK之后報(bào)錯(cuò)及解決辦法(推薦)
- Android Studio報(bào)錯(cuò)unable to access android sdk add-on list解決方案
- 解決Android Studio 出現(xiàn)“Cannot resolve symbol” 的問題
相關(guān)文章
Android編程實(shí)現(xiàn)的首頁左右滑動(dòng)切換功能示例
這篇文章主要介紹了Android編程實(shí)現(xiàn)的首頁左右滑動(dòng)切換功能,涉及Android事件監(jiān)聽及響應(yīng)相關(guān)操作技巧,需要的朋友可以參考下2017-07-07舉例講解Android應(yīng)用中SimpleAdapter簡單適配器的使用
這篇文章主要介紹了Android應(yīng)用中SimpleAdapter簡單適配器的使用例子,SimpleAdapter經(jīng)常在ListView被使用,需要的朋友可以參考下2016-04-04詳解Android實(shí)現(xiàn)定時(shí)器的幾種方法
本篇文章主要介紹了詳解Android實(shí)現(xiàn)定時(shí)器的幾種方法,主要包括了Handler, Timer, Thread, AlarmManager,有興趣的可以了解一下2017-09-09Android開發(fā)中模仿qq列表信息滑動(dòng)刪除功能
這篇文章主要介紹了Android開發(fā)中模仿qq列表信息滑動(dòng)刪除功能,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下2017-01-01android實(shí)現(xiàn)上滑屏幕隱藏底部菜單欄的示例
這篇文章主要介紹了android實(shí)現(xiàn)上滑屏幕隱藏底部菜單欄的示例,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2018-02-02Android通過Webservice操作sqlserver數(shù)據(jù)庫實(shí)例代碼
這篇文章主要介紹了Android通過Webservice操作sqlserver數(shù)據(jù)庫的相關(guān)知識(shí),對webservice操作數(shù)據(jù)庫相關(guān)知識(shí)感興趣的朋友一起學(xué)習(xí)吧2016-01-01Android 進(jìn)程間通信實(shí)現(xiàn)原理分析
只有你允許客戶端從不同的應(yīng)用程序?yàn)榱诉M(jìn)程間的通信而去訪問你的service,以及想在你的service處理多線程,下面為大家詳細(xì)介紹下2013-06-06