Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Android release crash on boot #721

Merged
merged 1 commit into from
Jun 26, 2022
Merged

Conversation

leotm
Copy link
Owner

@leotm leotm commented Jun 26, 2022


Flipper

FATAL EXCEPTION: create_react_context

java.lang.RuntimeException: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.

FATAL EXCEPTION: create_react_context
Process: com.leotm.myapp, PID: 13832
java.lang.RuntimeException: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
	at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)
	at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:248)
	at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:29)
	at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:277)
	at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1404)
	at com.facebook.react.ReactInstanceManager.access$1200(ReactInstanceManager.java:136)
	at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1108)
	at java.lang.Thread.run(Thread.java:920)

- Fix: #719
- Downgrade AGP from 7.4.0-alpha03 ❌
- AGP 7.2.0 ✅  facebook/react-native#33817
- AGP 7.4.0-beta03 ❌
- AGP 7.2.1 ✅

Flipper

FATAL EXCEPTION: create_react_context

java.lang.RuntimeException: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.

FATAL EXCEPTION: create_react_context
Process: com.leotm.myapp, PID: 13832
java.lang.RuntimeException: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
	at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)
	at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:248)
	at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:29)
	at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:277)
	at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1404)
	at com.facebook.react.ReactInstanceManager.access$1200(ReactInstanceManager.java:136)
	at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1108)
	at java.lang.Thread.run(Thread.java:920)
@leotm leotm added 🐞 Bugerino: Summin' ain't work'n jimmy android Native Android changes (Java, Gradle, Kotlin) release mode Production build variant agp Android Gradle Plugin run time labels Jun 26, 2022
@leotm leotm marked this pull request as ready for review June 26, 2022 19:41
@leotm leotm merged commit 0fd835e into master Jun 26, 2022
@leotm leotm deleted the fix/android-release-crash-on-boot branch June 26, 2022 19:43
@leotm leotm added this to the JDK 18 milestone Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agp Android Gradle Plugin android Native Android changes (Java, Gradle, Kotlin) 🐞 Bugerino: Summin' ain't work'n jimmy release mode Production build variant run time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FATAL EXCEPTION: create_react_context java.lang.RuntimeException
1 participant