-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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] Crash On Startup Using New Arch + Hermes #34237
Comments
👋 @Kesmek - I just tried to follow your repro steps but it doesn't crash for me: (I'm on macos) That said, the issue here is probably your version of Java: per your info output, it looks like you have Java 18 installed; but we currently recommend folks use Java 11 (see https://reactnative.dev/docs/next/environment-setup). We already have an issue about support for Java 18: #34103 and it has been addressed via these PRs: So I'm going to close this, but let me know if there's something else going wrong here :) |
This comment was marked as off-topic.
This comment was marked as off-topic.
@ahmadzraiq I scanned through the error log you posted and it seems different than mine, which was a duplicate anyway. I suggest you create a new issue and follow the guidelines so that the react native team can help you more easily. |
Description
When creating a fresh react native project from the template using
npx react-native init test --template react-native-template-typescript
, and changing the appropriate flags inandroid/app/build.gradle
to enable hermes and inandroid/gradle.properties
to enable the new arch, the app crashes on startup. It builds fine but on startup it crashes with these errors from adb:Version
0.69.2
Output of
npx react-native info
Steps to reproduce
npx react-native init test --template react-native-template-typescript
.enableHermes: true,
inandroid/app/build.gradle
.newArchEnabled=true
inandroid/gradle.properties
.yarn install; yarn android
.Snack, code example, screenshot, or link to a repository
Follow the reproduction steps to initialize a fresh project that will crash as mentioned above.
The text was updated successfully, but these errors were encountered: