// Top-level build file where you can add configuration options common to all sub-projects/modules. /* * 仓库顺序(2026-11-23 加镜像) * * google() / mavenCentral() 在国内机器上经常几十 KB/s, * 首次构建光下载 AGP + 依赖就要一小时。 * 把阿里云镜像放前面,官方源留作兜底 —— 镜像缺包时自动回落到官方, * 不会因为镜像不全而构建失败。 */ buildscript { repositories { maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/public' } maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } google() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:8.13.0' classpath 'com.google.gms:google-services:4.4.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } apply from: "variables.gradle" allprojects { repositories { maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/public' } google() mavenCentral() } } task clean(type: Delete) { delete rootProject.buildDir }