// Top-level build file where you can add configuration options common to all sub-projects/modules. apply from: 'config.gradle' buildscript { ext.kotlin_version = '1.7.20' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { // 新增 nexus.baijiayun.com 的依赖 maven { allowInsecureProtocol true url 'http://nexus.baijiayun.com/nexus/content/groups/android-public/' } maven { url 'https://git2.baijiashilian.com/open-android/maven/raw/master/' } maven { url 'https://jitpack.io' } google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }