buildscript { repositories { // jcenter() // mavenCentral() maven { url 'https://maven.aliyun.com/repository/public' }//central仓和jcenter仓的聚合仓 maven { url 'https://maven.aliyun.com/repository/google' } //google() maven { url 'https://jitpack.io' } maven { url 'https://oss.sonatype.org/content/groups/public/' } maven { url 'https://developer.huawei.com/repo/' } google() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10" classpath "com.android.tools.build:gradle:7.4.2" classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10' } } allprojects { repositories { flatDir { dirs 'libs' } // jcenter() // mavenCentral() maven { url 'https://maven.aliyun.com/repository/public' }//central仓和jcenter仓的聚合仓 maven { url 'https://maven.aliyun.com/repository/google' } //google() maven { url 'https://jitpack.io' } maven { url 'https://oss.sonatype.org/content/groups/public/' } maven { url 'https://developer.huawei.com/repo/' } google() } }