Repository navigation
chore(deps): migrate example Android to Gradle wrapper 9.9.2 - #43
Merged
Merged
Conversation
Bump the example Gradle wrapper from 9.4.1 to 9.9.2 (from Dependabot #29). Gradle 9.9 embeds Kotlin 2.4.21. The @react-native/gradle-plugin 0.88.1 included build compiles against gradleApi() with Kotlin 2.2.0, which cannot read 2.4 metadata ("Incompatible classes were found in dependencies"). Yarn-patch the plugin so its build logic is compiled with the Kotlin 2.4.21 JVM plugin, while keeping its kotlin-gradle-plugin dependency at 2.2.0 so the app and library still resolve KGP 2.2.10. Supersedes #29.
lam0819
force-pushed
the
fix/gradle-9.9.2
branch
from
November 26, 2026 10:19
91c000b to
b4ba2ff
Compare
This was referenced Nov 26, 2026
Merged
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.
Supersedes #29, the Dependabot Gradle wrapper bump. This PR is rebased on main (RN 0.88.1, Gradle 9.4.1) and takes the wrapper from 9.4.1 to 9.9.2.
Why #29 fails
Gradle 9.9 embeds Kotlin 2.4.21. The included build
@react-native/gradle-plugin@0.88.1compiles againstgradleApi()with Kotlin 2.2.0, which can only read metadata up to 2.3. The build fails with:Fix
A yarn patch on
@react-native/gradle-plugin@npm:0.88.1, wired in throughresolutions:kotlin-jvmplugin, which compiles the plugin's own build logic, moves to 2.4.21 through a newkotlin-compilercatalog entry.kotlin-gradle-plugindependency stays at 2.2.0, so the example app and the library still resolve KGP 2.2.10.Remove the patch when an RN release ships a gradle plugin built with Kotlin 2.3 or later.
Verified locally (JDK 17, Gradle 9.9.2)
yarn example test:android→ BUILD SUCCESSFULyarn example build:android→ BUILD SUCCESSFUL