Repository navigation
fix(android): Revert Android SDK bump to 8.61.1 - #6931
Merged
Merged
Conversation
Reverts #6929. sentry-java 8.61.1 is compiled with JDK 21, whose javac emits nameless MethodParameters entries that crash D8 from AGP <= 8.0 (RN <= 0.72) while dexing, failing the RN 0.71 E2E build on main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
Plus 2 more 🤖 This preview updates automatically when you update the PR. |
Contributor
8 of 11 tasks
alwx
approved these changes
Oct 22, 2026
📲 Install BuildsAndroid
|
This was referenced Oct 22, 2026
Open
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.
📢 Type of change
📜 Description
Reverts #6929, moving the bundled Android SDK back from 8.61.1 to 8.61.0.
💡 Motivation and Context
Since #6929 the
Build RN 0.71.19 legacy hermes androidE2E job fails on main (run). The release build fails in:app:mergeExtDexReleasebecause D8 can't dexsentry-8.61.1.jarandsentry-android-core-8.61.1:The cause is upstream. Starting with 8.61.1, sentry-java compiles with a JDK 21 toolchain (getsentry/sentry-java#6242). Even without
-parameters, javac 21 writes aMethodParametersattribute for methods with synthetic or mandated parameters, such as bridge methods (JDK-8292275), and leaves the parameter names out. Thesentry8.61.1 jar has 141 classes with these nameless entries; 8.61.0 has none. Older D8 versions crash on them.I compiled a small class with javac 21 and ran it through the newest release of several D8 lines:
This doesn't only break our CI. Apps on RN ≤ 0.72, or on AGP ≤ 8.0, would fail their release builds after upgrading to an SDK version that bundles 8.61.1. Our peer range (
react-native >=0.65.0) includes them.We can move to 8.61.1 or later again once sentry-java publishes jars without these entries.
💚 How did you test it?
git revertof chore(deps): update Android SDK to v8.61.1 #6929 applied cleanly. All 6 files are back to their 8.61.0 state, and the CHANGELOG entry for the 8.61.1 bump is removed.ready-to-mergelabel is added so the RN 0.71 E2E build runs on this PR.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
update-android.shbump to 8.61.1.ScreenshotUtils.takeMaskedScreenshotfrom 8.61.1) waits for the fixed release.🤖 Generated with Claude Code