gradle initapp // run this inside the root of your projectint the root dir run app it will add the code below to the settings.gradle.kts , remove the mavenCentral() inside the build.gradle.kts, and change the distributionUrl inside gradle/wrapper/gradle-wrapper.properties
dependencyResolutionManagement {
repositories{
maven("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/")
}
}
pluginManagement {
repositories{
maven("https://maven.aliyun.com/repository/gradle-plugin")
}
}