android-studio-2024.2.1.11-windows Android 移动应用开发者工具 – Android 开发者 | Android Developers
不会安装看教程
保姆级别安装2024最新版Android studio环境的方法_androidstudio2024最新版安装教程-CSDN博客
gradle-8.9-all下载地址
jdk21下载地址
https://download.oracle.com/java/21/latest/jdk-21_windows-x64_bin.zip
随便建个项目
下一步
完成
构建停掉
点击文件 - 设置
第一步 本地安装-配置-解压的gradle的路径
第二步 复制进配置gradle-wrapper.properties文件
distributionUrl=https\://mirrors.aliyun.com/gradle/distributions/v8.9.0/gradle-8.9-bin.zip
#Sun Nov 17 00:44:51 CST 2024
#配置gradle-wrapper.properties文件
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://mirrors.aliyun.com/gradle/distributions/v8.9.0/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
第三步 打开settings.gradle.kts 复制进去
#打开 Android Studio 工程文件,找到 settings.gradle.kts
pluginManagement {
repositories {
maven { url=uri ("https://maven.aliyun.com/repository/releases")}
maven { url=uri ("https://maven.aliyun.com/repository/google")}
maven { url=uri ("https://maven.aliyun.com/repository/central")}
maven { url=uri ("https://maven.aliyun.com/repository/gradle-plugin")}
maven { url=uri ("https://maven.aliyun.com/repository/public")}
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven { url=uri ("https://maven.aliyun.com/repository/releases")}
maven { url=uri ("https://maven.aliyun.com/repository/google")}
maven { url=uri ("https://maven.aliyun.com/repository/central")}
maven { url=uri ("https://maven.aliyun.com/repository/gradle-plugin")}
maven { url=uri ("https://maven.aliyun.com/repository/public")}
google()
mavenCentral()
}
}
rootProject.name = "My Application"
include(":app")
重新构建项目就行了