-
Notifications
You must be signed in to change notification settings - Fork 255
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
[React Native 0.76.2] Android bundle build failing while using new architecture. #2273
Comments
Hi @einjunge99 Thanks for reaching out. I downloaded the reproduction you shared and did see the same issues after running |
Hey, @einjunge99 thanks for opening this issue. This is confirmed by:
Essentially once the app starts the C++ compilation, the codegen for bugsnag hasn't executed and it will let the compilation fail because of a missing file. I'm trying to understand why this is surfacing now. @einjunge99 is the same issue also happening on 0.75? @clr182 does this ring any bell? Is bugsnag doing something with tasks dependencies? As a workaround you can either:
preBuild.dependsOn(":bugsnag_react-native:preBuild") I'd love to fix this inside React Native though as other libraries might be affected by this as well (however this is the first time this issue is surfaced). |
Hi @einjunge99 and @cortinico, Thanks for reporting this. Turns out I was wrong about this - this issue isn't related to the React Native 0.76 release and is actually to do with the inclusion of The workarounds listed above will work, but for React Native projects we'd actually recommend removing If you use our React Native CLI package ( |
That's great thanks for clarifying! |
Describe the bug
Created a new project and followed the manual setup guide. App works fine on emulator/physical device, but when I try to build it, it throws the following error:
Upon further inspection, as the logs attached below states, no
/Users/isaacmaldonado/Documents/Projects/Template/node_modules/@bugsnag/react-native/android/build/generated/source/codegen/jni/
were generated.Steps to reproduce
npx @react-native-community/cli@latest init <APP_NAME> --version 0.76.2
cd android
folder and run./gradlew bundleRelease
Environment
Example Repo
android/app/src/main/AndroidManifest.xml
)Error messages:
The text was updated successfully, but these errors were encountered: