docs(android): Document Gradle 8.14.2+ requirement for Sentry Android Gradle Plugin 6.x#17620
Open
InterstellarStella wants to merge 1 commit intomasterfrom
Open
Conversation
The Sentry Android Gradle Plugin 6.x is built against Gradle 8.14.2 and requires Gradle 8.14.2+ at runtime, but this requirement was not surfaced anywhere in user-facing docs. Customers upgrading to @sentry/react-native v8 (which bundles SAGP 6.x) on Gradle 8.10.x hit a confusing java.lang.NoSuchMethodError on Exec.setIgnoreExitValue at task registration. Disabling uploadNativeSymbols masks the error temporarily but doesn't fix the underlying ABI mismatch, so users have been chasing the wrong fix. This change documents the requirement and the failure mode in five places so it's discoverable from each angle a user might land on: - New SAGP v5-to-v6 migration page (the migration directory previously had no entry for this version jump). - New troubleshooting entry on the Android troubleshooting page with the literal stack trace and the exact gradlew wrapper fix. - Cross-referenced troubleshooting entry on the React Native troubleshooting page. - Added the missing Gradle 8.14.2+ bullet (with a warning Alert) to the React Native v7-to-v8 migration guide's Android section. - Added a warning Alert to the main Gradle configuration page calling out the minimum runtime Gradle version for plugin 6.x. Co-Authored-By: Claude <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
romtsn
requested changes
May 6, 2026
Member
romtsn
left a comment
There was a problem hiding this comment.
@InterstellarStella this doesn't sound right -- ignoreExitValue has existed since version 1.0 of Gradle, so it's definitely not a new API. Also, we compile against version 8.9.0 in the gradle plugin and not 8.14.2.
Could you please share more details on the issue/share a link to support ticket? This needs further investigation
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
The
sentry-android-gradle-plugin6.x line is built against Gradle 8.14.2 and requires Gradle 8.14.2+ at runtime, but this is currently not surfaced in user-facing docs. Customers upgrading to@sentry/react-nativev8 (which bundles SAGP 6.x) on Gradle 8.10.x hit a confusingjava.lang.NoSuchMethodError: 'org.gradle.api.tasks.Exec org.gradle.api.tasks.Exec.setIgnoreExitValue(boolean)'at task registration. DisablinguploadNativeSymbolsmasks the error temporarily but doesn't fix the underlying ABI mismatch, so users have been chasing the wrong fix.These doc changes were made at the request of a customer who hit this exact issue while upgrading to Sentry React Native v8 on a brownfield Android app. Support ticket: https://app.intercom.com/a/inbox/onh0p2wm/inbox/admin/9850682/conversation/215474146376271?view=List
What's in this PR
gradlew wrapperfix.Gradle: 8.14.2+bullet (with a warning Alert) to the React Native v7 → v8 migration guide's Android section.Gradleconfiguration page calling out the minimum runtime Gradle version for plugin 6.x.Test plan
Background
The only workaround the customer initially found was disabling `uploadNativeSymbols` and `includeNativeSources`, which obscured the actual root cause. Adding an explicit minimum-version guard inside the plugin itself (so Gradle fails fast with an actionable message) is being tracked separately in the sentry-android-gradle-plugin repo; this PR is just the documentation half.