Title: Play Console DEX optimization deadline (Feb 2027) makes R8 support urgent: startup crash with R8 persists on 9.0.4 and 9.1.1 (follow-up to #2039) · Issue #2123 · NativeScript/android · GitHub
Open Graph Title: Play Console DEX optimization deadline (Feb 2027) makes R8 support urgent: startup crash with R8 persists on 9.0.4 and 9.1.1 (follow-up to #2039) · Issue #2123 · NativeScript/android
X Title: Play Console DEX optimization deadline (Feb 2027) makes R8 support urgent: startup crash with R8 persists on 9.0.4 and 9.1.1 (follow-up to #2039) · Issue #2123 · NativeScript/android
Description: This is a follow-up to #2039 (Crash on startup when enabling R8 optimization). I am not reporting a new bug; I am confirming that it still reproduces on runtime 9.1.1 and adding a deadline that makes it urgent. Why this is now time-sensi...
Open Graph Description: This is a follow-up to #2039 (Crash on startup when enabling R8 optimization). I am not reporting a new bug; I am confirming that it still reproduces on runtime 9.1.1 and adding a deadline that mak...
X Description: This is a follow-up to #2039 (Crash on startup when enabling R8 optimization). I am not reporting a new bug; I am confirming that it still reproduces on runtime 9.1.1 and adding a deadline that mak...
Opengraph URL: https://github.com/NativeScript/android/issues/2123
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Play Console DEX optimization deadline (Feb 2027) makes R8 support urgent: startup crash with R8 persists on 9.0.4 and 9.1.1 (follow-up to #2039)","articleBody":"This is a follow-up to #2039 (Crash on startup when enabling R8 optimization). I am not reporting a new bug; I am confirming that it still reproduces on runtime 9.1.1 and adding a deadline that makes it urgent.\n\n**Why this is now time-sensitive**\nGoogle Play Console now flags our app with \"DEX code optimization is below our threshold\" (Obfuscation 1%, fix by Feb 2027). From Feb 2027, Play requires at least 25% in each of obfuscation, optimization and shrinking for apps with 10 MB or more of uncompressed DEX code, and states that missing it may affect visibility and publishing. Our app has 18.2 MB of DEX, so it is in scope. Any NativeScript app with a similar plugin set is probably in the same position.\n\n**Our setup**\n- NativeScript Angular app (Angular 20.2, @nativescript/angular 20.x)\n- Android runtime 9.0.4, and again after upgrading to 9.1.1\n- Plugins with native code: Firebase messaging, Google Maps, Google Sign-In, ML Kit (barcode + text recognition), geolocation, secure storage, local notifications\n- Release build with minifyEnabled true, shrinkResources true, proguard-android-optimize.txt and broad manual keep rules (androidx.**, com.google.**, com.tns.**, our app package)\n\n**Result**\nSame crash on both 9.0.4 and 9.1.1 at startup:\n\nJNI DETECTED ERROR IN APPLICATION: java_class == null\n from void com.tns.Runtime.runModule(int, java.lang.String)\n\nfollowed by \"Module evaluation promise rejected: .../bundle.mjs\". The stack frames show r8-map-id, so R8 was active. The log does not name the missing class, so we cannot tell which keep rule is missing.\n\n**Questions**\n1. Is the metadata-driven keep rule generation proposed here (and the bundle-analysis approach in NativeScript/runtimes#43) planned for a release, and is there a rough timeline?\n2. Is there a supported interim way to enable R8 that reaches 25% in all three categories, or to get below the 10 MB DEX threshold?\n3. Could the runtime log the class name when FindClass returns null instead of passing it to JNI? That alone would make manual rules debuggable.\n\nHappy to test a pre-release runtime or a patch against our app and report results.","author":{"url":"https://github.com/sasabogicevicdebug-glitch","@type":"Person","name":"sasabogicevicdebug-glitch"},"datePublished":"2026-11-19T11:46:32Z","url":"https://github.com/NativeScript/android/issues/2123"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2c5baf08-1e69-5a90-ff46-947ce4fefeb3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8A8:24A0A:186203A:1EB7957:6B0172C2 |
| html-safe-nonce | d6d8594b0bb09804ac3f9eea03e6b774834e9972e5b8eed7e6642613b4f7dc06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEE4OjI0QTBBOjE4NjIwM0E6MUVCNzk1Nzo2QjAxNzJDMiIsInZpc2l0b3JfaWQiOiI4NDEzODU5MjYxMjg0NzA5MDU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d47228298c1cacc4f94de77b2ab1904a517248c2dbb326e09f31ef7c69fa2b52 |
| hovercard-subject-tag | issue:6488848300 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/android/2123/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff03359442ed67ddb41409f5203856fd8a0ed21b69d41a6eff52b6b329da36a5/NativeScript/android/issues/2123 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff03359442ed67ddb41409f5203856fd8a0ed21b69d41a6eff52b6b329da36a5/NativeScript/android/issues/2123 |
| og:image:alt | This is a follow-up to #2039 (Crash on startup when enabling R8 optimization). I am not reporting a new bug; I am confirming that it still reproduces on runtime 9.1.1 and adding a deadline that mak... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sasabogicevicdebug-glitch |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/android git https://github.com/NativeScript/android.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 29137950 |
| octolytics-dimension-repository_nwo | NativeScript/android |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29137950 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/android |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width