Skip to content

Commit 24b3a08

Browse files
Add plugin repositories to Android settings.gradle for resilient dependency resolution
The Gradle foojay-resolver-convention plugin needs gson from Maven Central, which intermittently returns 403. Adding explicit pluginManagement repositories (gradlePluginPortal, google, mavenCentral) provides fallback mirrors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3fd5de1 commit 24b3a08

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

sample/android/settings.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
pluginManagement { includeBuild("../../node_modules/@react-native/gradle-plugin") }
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
google()
5+
mavenCentral()
6+
}
7+
includeBuild("../../node_modules/@react-native/gradle-plugin")
8+
}
29
plugins { id("com.facebook.react.settings") }
310
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
411

0 commit comments

Comments
 (0)