設置 | 登錄 | 註冊

目前共有2篇帖子。

Android Studio 3.5.3下載地址

12樓 巨大八爪鱼 2025-8-18 16:00
解決Android studio 3.5.3出現Cause: unable to find valid certification path to requested target 報錯的問題

修改根目錄(注意是根目錄!!!不是app工程下面)下的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.5.3'


        // 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'}

    }

}


然後就同步成功了。

巨大八爪鱼 2025-8-18 16:02
參考資料:https://www.jb51.net/article/182527.htm

classpath 'com.android.tools.build:gradle:3.6.1'

這個classpath必須要根據android studio版本來設置。

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
©2010-2025 Purasbar Ver3.0 [手機版] [桌面版]
除非另有聲明,本站採用知識共享署名-相同方式共享 3.0 Unported許可協議進行許可。