Settings | Sign in | Sign up

There are currently 2 posts.

Android Studio 3.5.3下載地址

Floor 12 巨大八爪鱼 8/18/25 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'}

    }

}


然後就同步成功了。

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

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

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

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.