-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
Android crashes when booting on 0.68.0-rc.2 when hermes enabled #33412
Comments
I've already seen some similar links |
Are you running on a custom flavor/build-type? |
Look how is my buildTypes
|
Could you (or someone else) create a reproducer using the default template for Android and your configuration + verify that it also crashes? That would be a good starting point to find a fix |
@cortinico ok i will do it |
@cortinico I changed my buildTypes in a default project with my current project settings, the app doesn't break. But when I put all the build.gradle in the default project the app crashes |
I will do more tests and compare the two versions |
@cortinico I found the problem This code snippet was at the top of my file
Doing this on my
|
Awesome 👍 |
i fix this. you can override getJavaScriptExecutorFactory in your ReactNativeHost if you use hermes,force JSExecutorFactory use hermesExecutorFactory
|
Description
When updating to the new version the app crashes on start. I have hermes enabled.
I get the following log
I tried a solution that worked and the app works correctly
in
android/build.gradle
addin
android/app/build.gradle
addhowever the
const isHermes = () => !!global.HermesInternal;
returns falseVersion
0.68.0-rc.2
Output of
npx react-native info
System:
OS: Windows 10 10.0.22000
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Memory: 1.89 GB / 15.73 GB
Binaries:
Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 23, 28, 29, 30, 31
Build Tools: 28.0.2, 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0
System Images: android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8092744
Visual Studio: Not Found
Languages:
Java: 11.0.12
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.0-rc.2 => 0.68.0-rc.2
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Update RN from 0.66.4 to 0.68.0-rc.2
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: