[Android] When Hermes is enabled app crashes in release mode
See original GitHub issueWhen enabling the Hermes JavaScript engine for Android the app crashes immediately at launch:
java.lang.IllegalArgumentException: Receiver not registered: org.wonday.orientation.OrientationModule$2@4c0425a
This issue only occurs when building the app in release configuration and with JS bundled in the app. I guess this has something to do the way Hermes compiles JS to bytecode.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:9
Top Results From Across the Web
Hermes 0.9.0 crash on android when build release RN 0.66.3
I'm trying to build a release version and the app getting crashes when I'm open the app! If I disable Hermes the app...
Read more >Enabling hermes in android app crashing app in react native ...
Enabling Hermes in react native giving below error without hermes working fine in android : I have used react native code in existing...
Read more >Using Hermes - React Native
Edit your android/app/gradle.properties file and make sure hermesEnabled is true: # Use this property to enable or disable the Hermes JS engine.
Read more >Fixing React-Native android release build - wesionaryTEAM
Android release build crashes on launch but works fine in development mode. After months of research and development, your app is finally ready...
Read more >Android App Crashes in release mode. What are the required ...
Android App Crashes in release mode. What are the required class that needs to be added in proGurad. In Debug mode everything works...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ok got it. the issue for me was in react-native-gesture-handler adding
import 'react-native-gesture-handler'
on top of my index.js file fixed it for me (more info)Still experiencing that with:
“react-native-orientation-locker”: “1.3.1”, “react-native-gesture-handler”: “1.10.3”,
AND I’m importing
react-native-gesture-handler
on init too.Any ideas?