xinli/xinli-App/build.gradle
2025-11-23 10:19:32 +08:00

25 lines
1.1 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

buildscript {
repositories {
// 1. 腾讯云 Google Maven 专属镜像AGP 4.2.2 必存,同步及时)
maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/google/' }
// 2. 腾讯云 Gradle 插件镜像(兜底 AGP 下载)
maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/gradle-plugin/' }
// 3. 腾讯云公共仓库(加速其他依赖下载)
maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }
}
dependencies {
// 关键AGP 4.2.2(最后支持 Java 8 的稳定版,腾讯云必存)
classpath "com.android.tools.build:gradle:4.2.2"
// 其他依赖(如 Kotlin 插件、ButterKnife 等,保留不变)
}
}
allprojects {
repositories {
// 项目依赖也走腾讯云镜像,统一加速
maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/google/' }
maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }
google() // Google 官方仓库(备用)
mavenCentral() // 中央仓库兜底
}
}