Skip to content

Pin Gradle to <9.4 (incompatible with React Native 0.85.3)#37

Merged
dfalling merged 1 commit into
mainfrom
pin-gradle-below-9.4
Jun 5, 2026
Merged

Pin Gradle to <9.4 (incompatible with React Native 0.85.3)#37
dfalling merged 1 commit into
mainfrom
pin-gradle-below-9.4

Conversation

@dfalling
Copy link
Copy Markdown
Owner

@dfalling dfalling commented Jun 5, 2026

Why

Renovate opened #34 to bump Gradle 9.3.1 → 9.5.1, but it fails CI (Android assembleDebug) and cannot be made to pass with the current React Native version.

React Native 0.85.3's bundled @react-native/gradle-plugin is compiled with Kotlin 2.1.20, whose compiler can only read Kotlin metadata up to 2.3. Every Gradle ≥9.4 bundles a Kotlin 2.3.x stdlib that leaks onto the settings-plugin compile classpath, so the build dies compiling the RN plugin:

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.3.0, expected version is 2.1.0.

Verified locally across versions:

Gradle Bundled Kotlin Builds with RN 0.85.3?
9.3.1 (current) 2.2.21
9.4.0 2.3.0
9.5.0 / 9.5.1 2.3.20

9.3.1 — the version already in use — is the highest Gradle compatible with RN 0.85.3.

Change

Add a renovate.json package rule pinning Gradle to <9.4.0 so Renovate stops re-proposing the broken upgrade. Closes #34. The ceiling should be raised once React Native ships a gradle-plugin built with Kotlin ≥2.3.

🤖 Generated with Claude Code

Gradle >=9.4 bundles a Kotlin 2.3.x stdlib, but RN 0.85.3's bundled
gradle-plugin is compiled with Kotlin 2.1.20, which cannot read Kotlin 2.3
metadata — the build fails compiling the RN settings-plugin. 9.3.1 (Kotlin
2.2.21) is the highest working version. Stops Renovate from re-proposing the
broken upgrade (PR #34) until React Native ships a plugin built with newer
Kotlin.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dfalling dfalling mentioned this pull request Jun 5, 2026
1 task
@dfalling dfalling merged commit 6262710 into main Jun 5, 2026
2 checks passed
@dfalling dfalling deleted the pin-gradle-below-9.4 branch June 5, 2026 20:43
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