You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Execution failed for task ':app:configureCMakeRelWithDebInfo[arm64-v8a]'.
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
Create new react native project with npx @react-native-community/cli@latest init <APP_NAME> --version 0.76.2
Create a minimal repository that can reproduce the issue
Link to it here: https://github.com/einjunge99/template (Remember to replace YOUR_BUGSNAG_API_KEY with your own Bugsnag API key on android/app/src/main/AndroidManifest.xml)
Error messages:
> Task :app:configureCMakeDebug[arm64-v8a] FAILED
C/C++: CMake Error at /Users/isaacmaldonado/Documents/Projects/Template/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:9 (add_subdirectory):
C/C++: add_subdirectory given source
C/C++: "/Users/isaacmaldonado/Documents/Projects/Template/node_modules/@bugsnag/react-native/android/build/generated/source/codegen/jni/"
C/C++: which is not an existing directory.
C/C++: Call Stack (most recent call first):
C/C++: /Users/isaacmaldonado/Documents/Projects/Template/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include)
C/C++: CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/isaacmaldonado/Documents/Projects/Template/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:89 (target_link_libraries):
C/C++: Cannot specify link libraries for target
C/C++: "react_codegen_BugsnagReactNativeSpec" which is not built by this project.
C/C++: Call Stack (most recent call first):
C/C++: CMakeLists.txt:31 (include)
The text was updated successfully, but these errors were encountered:
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: