在Gradle8中使用阿里云maven仓库、jitpack仓库

编辑settings.gradle

pluginManagement {
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'
posted @ 2024-08-07 22:49  心若向阳,次第花开  阅读(522)  评论(0编辑  收藏  举报