Skip to content

fix(android): remove jcenter() for Gradle 9 compatibility - #382

Open
limenitiz wants to merge 1 commit into
HMS-Core:masterfrom
limenitiz:fix/remove-jcenter-gradle-9
Open

limenitiz wants to merge 1 commit into
HMS-Core:masterfrom
limenitiz:fix/remove-jcenter-gradle-9

Conversation

@limenitiz

Copy link
Copy Markdown

Summary

  • Gradle 9 removed the jcenter() repository method, which breaks Android builds that include these plugins (Could not find method jcenter() for arguments [] on repository container).
  • Remove jcenter() from all react-native-hms-* library and example android/build.gradle files and add mavenCentral() where it was missing.
  • Huawei Maven (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-* (43 build.gradle files: library + example where present), including react-native-hms-availability and react-native-hms-location.

Related: #380 updates wrappers / push more broadly; this PR is intentionally narrow (repositories only).

Test plan

  • jcenter() no longer appears in any react-native-hms-*/**/build.gradle
  • Diff for availability/location matches known-good consumer patches used with Gradle 9
  • Consumer app on Gradle 9 configures/builds with these modules without jcenter() errors

@limenitiz
limenitiz force-pushed the fix/remove-jcenter-gradle-9 branch from 0dfb8d8 to a1bf36c Compare October 15, 2026 16:44
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
limenitiz force-pushed the fix/remove-jcenter-gradle-9 branch from a1bf36c to f61d5b4 Compare October 15, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant