设置 | 登录 | 注册

作者共发了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许可协议进行许可。