Repository navigation
Conversation
limenitiz
force-pushed
the
fix/remove-jcenter-gradle-9
branch
from
October 15, 2026 16:44
0dfb8d8 to
a1bf36c
Compare
Gradle 9 removed the jcenter() repository method. Replace it with mavenCentral() across all react-native-hms-* library and example Android builds so consumer apps on Gradle 9 can resolve the plugins. Huawei Maven and other repositories are unchanged. Backward-compatible with Gradle 6+.
limenitiz
force-pushed
the
fix/remove-jcenter-gradle-9
branch
from
October 15, 2026 16:45
a1bf36c to
f61d5b4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jcenter()repository method, which breaks Android builds that include these plugins (Could not find method jcenter() for arguments [] on repository container).jcenter()from allreact-native-hms-*library and exampleandroid/build.gradlefiles and addmavenCentral()where it was missing.https://developer.huawei.com/repo/) and other repositories are unchanged. This is backward-compatible with Gradle 6+ consumers and required for Gradle 9.Scope
All modules under
react-native-hms-*(43build.gradlefiles: library + example where present), includingreact-native-hms-availabilityandreact-native-hms-location.Related: #380 updates wrappers / push more broadly; this PR is intentionally narrow (repositories only).
Test plan
jcenter()no longer appears in anyreact-native-hms-*/**/build.gradlejcenter()errors