Make sure Android dependencies are fetched from Google's repo in Gradle sync

This commit is contained in:
Jorge Martín
2026-09-09 12:41:59 +02:00
committed by Jorge Martin Espinosa
parent 666081e2f2
commit 10776a7e6b
+13 -1
View File
@@ -25,7 +25,19 @@ dependencyResolutionManagement {
includeModule("com.github.philburk", "jsyn")
}
}
google()
// Check for official Android-related packages only in Google's maven repo
exclusiveContent {
forRepository {
google()
}
filter {
includeGroupByRegex("android\\..*")
includeGroupByRegex("androidx\\..*")
includeGroupByRegex("com\\.android\\.tools.*")
includeGroupByRegex("com\\.google\\.firebase.*")
includeGroupByRegex("com\\.google\\.android.*")
}
}
mavenCentral()
maven {
url = uri("https://repo1.maven.org/maven2/")