编辑settings.gradle
pluginManagement {标签:google,Gradle8,仓库,includeGroupByRegex,maven,https,com,jitpack From: https://www.cnblogs.com/terry-cc/p/18348015
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://jitpack.io' }
google()
mavenCentral()
}
}
rootProject.name = "AndroidAbc"
include ':app'
include ':swipeBackLayout'