René's URL Explorer Experiment


Title: 8.61.1 fails to dex on AGP 8.0 and older: D8 NullPointerException "Cannot invoke String.length()" · Issue #6355 · getsentry/sentry-java · GitHub

Open Graph Title: 8.61.1 fails to dex on AGP 8.0 and older: D8 NullPointerException "Cannot invoke String.length()" · Issue #6355 · getsentry/sentry-java

X Title: 8.61.1 fails to dex on AGP 8.0 and older: D8 NullPointerException "Cannot invoke String.length()" · Issue #6355 · getsentry/sentry-java

Description: Description Starting with 8.61.1, Android release builds that use D8 older than 8.1 (AGP 8.0 and older) fail in mergeExtDexRelease while dexing io.sentry:sentry and io.sentry:sentry-android-core: D8: java.lang.NullPointerException: Canno...

Open Graph Description: Description Starting with 8.61.1, Android release builds that use D8 older than 8.1 (AGP 8.0 and older) fail in mergeExtDexRelease while dexing io.sentry:sentry and io.sentry:sentry-android-core: D...

X Description: Description Starting with 8.61.1, Android release builds that use D8 older than 8.1 (AGP 8.0 and older) fail in mergeExtDexRelease while dexing io.sentry:sentry and io.sentry:sentry-android-core: D...

Opengraph URL: https://github.com/getsentry/sentry-java/issues/6355

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"8.61.1 fails to dex on AGP 8.0 and older: D8 NullPointerException \"Cannot invoke String.length()\"","articleBody":"## Description\n\nStarting with 8.61.1, Android release builds that use D8 older than 8.1 (AGP 8.0 and older) fail in `mergeExtDexRelease` while dexing `io.sentry:sentry` and `io.sentry:sentry-android-core`:\n\n```\nD8: java.lang.NullPointerException: Cannot invoke \"String.length()\" because \"\u003cparameter1>\" is null\n```\n\nWe found it in the React Native SDK's RN 0.71 E2E build ([failing job](https://github.com/getsentry/sentry-react-native/actions/runs/39760830318/job/119778444811)) and reverted the bump there in getsentry/sentry-react-native#6931. It is not RN specific: any Android app whose build uses D8 \u003c 8.1 is affected, no matter the framework.\n\n## Root cause\n\n#6242 moved compilation to a JDK 21 toolchain. Since JDK 21 ([JDK-8292275](https://bugs.openjdk.org/browse/JDK-8292275)), javac writes a `MethodParameters` attribute for methods with synthetic or mandated parameters, such as bridge methods, even without `-parameters`. These entries carry flags but no name. As far as we can tell, javac has no option to turn this off.\n\nExample from the published `sentry-8.61.1.jar`, `io.sentry.SentryLogLevel$Deserializer`:\n\n```\npublic java.lang.Object deserialize(io.sentry.ObjectReader, io.sentry.ILogger) throws java.lang.Exception;\n  flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC\n  ...\n  MethodParameters:\n    Name                           Flags\n    \u003cno name>                      synthetic\n    \u003cno name>                      synthetic\n```\n\nOlder D8 versions read the null name and crash.\n\nClasses with a `MethodParameters` attribute (checked with `javap -v` on the Maven Central artifacts):\n\n| Artifact | 8.61.0 | 8.61.1 |\n|---|---|---|\n| `sentry` | 0 / 782 | 141 / 782 |\n| `sentry-android-core` | 0 / 219 | 25 / 223 |\n\n## D8 compatibility\n\nA class compiled with javac 21, run through the newest release of each D8 line:\n\n| D8 | AGP | Result |\n|---|---|---|\n| 3.3.75 | 7.3 | NPE |\n| 4.0.63 | 7.4 | NPE |\n| 8.0.40 | 8.0 | NPE |\n| 8.1.72 | 8.1 | OK |\n| 8.2.47 | 8.2 | OK |\n\n## Reproduction\n\nEither build any AGP 7.3.1 app that depends on `io.sentry:sentry-android:8.61.1` with `./gradlew assembleRelease`, or run D8 directly, no Gradle needed:\n\n```sh\ncurl -LO https://maven.google.com/com/android/tools/r8/3.3.75/r8-3.3.75.jar\ncurl -LO https://repo1.maven.org/maven2/io/sentry/sentry/8.61.1/sentry-8.61.1.jar\nmkdir out\njava -cp r8-3.3.75.jar com.android.tools.r8.D8 --release --min-api 21 \\\n  --lib $ANDROID_HOME/platforms/android-\u003capi>/android.jar --output out sentry-8.61.1.jar\n```\n\nThe same command succeeds with `sentry-8.61.0.jar`.\n\n## Proposed fix\n\nRemove the `MethodParameters` attribute from the main Java classes of published modules after `JavaCompile`, using ASM (already on the build classpath through AGP, same version 9.9). Without `-parameters` the attribute only holds these nameless entries, so nothing the SDK relies on is lost, and the output matches what javac 17 produced. Kotlin code is unaffected, because kotlinc doesn't write the attribute unless `-java-parameters` is set.\n\nWe didn't go with `-parameters`: it would add the attribute, with names, to every method of every published class, which makes the jars and dex output bigger, and we haven't verified that it avoids the nameless entries for synthetic parameters.\n\nVerified locally with the fix:\n- 0 classes with `MethodParameters` in the `sentry` jar and the `sentry-android-core` AAR\n- both dex cleanly with D8 3.3.75, while the published 8.61.1 jar fails with the NPE above\n- the attribute stays stripped after a forced recompile (`--rerun`), with configuration cache enabled\n\n## Impact\n\n- **React Native:** the peer range is `react-native >=0.65.0`. RN 0.72 and older default to AGP 7.x, so those apps fail their release builds on an RN SDK version that bundles 8.61.1. RN stays on 8.61.0 until a fixed release is out.","author":{"url":"https://github.com/antonis","@type":"Person","name":"antonis"},"datePublished":"2026-10-22T11:39:37Z","url":"https://github.com/getsentry/sentry-java/issues/6355"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a7196247-7b2b-e20a-a816-e7996c9d0be6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB3A:D1D86:28FED:385FB:6B046147
html-safe-nonceeb327a76fd14b19854378910642833905d5b364760cb23bb070e0dfa711ae111
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjNBOkQxRDg2OjI4RkVEOjM4NUZCOjZCMDQ2MTQ3IiwidmlzaXRvcl9pZCI6IjQ3MDI2MjcwMzA2ODMxMTU4NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4482a034318befd7971bbdb0a3d08ba78b278caefc48aa6963d8330f4881fcec
hovercard-subject-tagissue:5978576252
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/6355/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e7ac24fe6b04ab346d79e5e5c62e1c1bb64f6d39bb44eb61b8aca39b729427f5/getsentry/sentry-java/issues/6355
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e7ac24fe6b04ab346d79e5e5c62e1c1bb64f6d39bb44eb61b8aca39b729427f5/getsentry/sentry-java/issues/6355
og:image:altDescription Starting with 8.61.1, Android release builds that use D8 older than 8.1 (AGP 8.0 and older) fail in mergeExtDexRelease while dexing io.sentry:sentry and io.sentry:sentry-android-core: D...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameantonis
hostnamegithub.com
expected-hostnamegithub.com
None2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3368190
octolytics-dimension-repository_nwogetsentry/sentry-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3368190
octolytics-dimension-repository_network_root_nwogetsentry/sentry-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release03e114520787ad27289207f153520ef97461127c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/6355#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6355
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6355
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-java
Reloadhttps://github.com/getsentry/sentry-java/issues/6355
Reloadhttps://github.com/getsentry/sentry-java/issues/6355
Reloadhttps://github.com/getsentry/sentry-java/issues/6355
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues266 (266)https://github.com/getsentry/sentry-java/issues
Pull requests57 (57)https://github.com/getsentry/sentry-java/pulls
Discussionshttps://github.com/getsentry/sentry-java/discussions
Actionshttps://github.com/getsentry/sentry-java/actions
Projectshttps://github.com/getsentry/sentry-java/projects
Security and quality2 (2)https://github.com/getsentry/sentry-java/security
Insightshttps://github.com/getsentry/sentry-java/insights
https://github.com/getsentry/sentry-java
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6355
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6355
#6356https://github.com/getsentry/sentry-java/pull/6356
8.61.1 fails to dex on AGP 8.0 and older: D8 NullPointerException "Cannot invoke String.length()"https://github.com/getsentry/sentry-java/issues/6355#top
#6356https://github.com/getsentry/sentry-java/pull/6356
https://github.com/markushi
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
BugIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Bug%22
https://github.com/antonis
antonishttps://github.com/antonis
on Oct 22, 2026https://github.com/getsentry/sentry-java/issues/6355#issue-5978576252
failing jobhttps://github.com/getsentry/sentry-react-native/actions/runs/39760830318/job/119778444811
getsentry/sentry-react-native#6931https://github.com/getsentry/sentry-react-native/pull/6931
#6242https://github.com/getsentry/sentry-java/pull/6242
JDK-8292275https://bugs.openjdk.org/browse/JDK-8292275
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 22, 2026https://github.com/getsentry/sentry-java/issues/6355#issuecomment-6339835510
Linear Codehttps://linear.app
JAVA-790https://linear.app/getsentry/issue/JAVA-790
github-actionshttps://github.com/apps/github-actions
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Oct 22, 2026https://github.com/getsentry/sentry-java/issues/6355#event-33944758694
markushihttps://github.com/markushi
on Oct 22, 2026https://github.com/getsentry/sentry-java/issues/6355#event-33955774079
romtsnhttps://github.com/romtsn
BugIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Bug%22
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Oct 23, 2026https://github.com/getsentry/sentry-java/issues/6355#event-34054818550
https://github.com/tustanivsky
tustanivskyhttps://github.com/tustanivsky
on Oct 26, 2026https://github.com/getsentry/sentry-java/issues/6355#issuecomment-6410080861
failing jobhttps://github.com/getsentry/sentry-unreal/actions/runs/39919685706/job/120318462343
#6356https://github.com/getsentry/sentry-java/pull/6356
getsentry/sentry-unreal#1653https://github.com/getsentry/sentry-unreal/pull/1653
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Oct 26, 2026https://github.com/getsentry/sentry-java/issues/6355#event-34231909007
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 26, 2026https://github.com/getsentry/sentry-java/issues/6355#event-34231913487
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 26, 2026https://github.com/getsentry/sentry-java/issues/6355
runningcodehttps://github.com/runningcode
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Oct 26, 2026https://github.com/getsentry/sentry-java/issues/6355#event-34236489022
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 26, 2026https://github.com/getsentry/sentry-java/issues/6355
markushihttps://github.com/markushi
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
c42d51dhttps://github.com/getsentry/sentry-java/commit/c42d51da9936b3ff0fa53668c1628bf8aacf62e6
on Oct 27, 2026https://github.com/getsentry/sentry-java/issues/6355#event-34344826144
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 27, 2026https://github.com/getsentry/sentry-java/issues/6355#issuecomment-6437763787
GitHub Actionshttps://help.github.com/en/actions
#6356https://github.com/getsentry/sentry-java/pull/6356
8.62.0 releasehttps://github.com/getsentry/sentry-java/releases/tag/8.62.0
mvanhornhttps://github.com/mvanhorn
on Oct 29, 2026https://github.com/getsentry/sentry-java/issues/6355#event-34598514245
fix(build): Strip MethodParameters so AGP 8.0 and older can dex the S…https://github.com/mvanhorn/sentry-java/commit/c42d51da9936b3ff0fa53668c1628bf8aacf62e6
https://docs.github.com/articles/closing-issues-via-commit-messages
c42d51dhttps://github.com/mvanhorn/sentry-java/commit/c42d51da9936b3ff0fa53668c1628bf8aacf62e6
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/6355
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6355
markushihttps://github.com/markushi
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
BugIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Bug%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.