buildscript { ext { agp_version = '8.9.0' } ext.kotlin_version = '2.1.10' repositories { google() mavenCentral() // maven { url 'https://maven.aliyun.com/repository/google' } // maven { url 'https://maven.aliyun.com/repository/jcenter' } // maven { url 'https://maven.aliyun.com/repository/public' } // maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } } dependencies { classpath "com.android.tools.build:gradle:$agp_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() mavenCentral() // maven { url 'https://maven.aliyun.com/repository/google' } // maven { url 'https://maven.aliyun.com/repository/jcenter' } // maven { url 'https://maven.aliyun.com/repository/public' } // maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } tasks.register("clean", Delete) { delete rootProject.buildDir }