Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰] Android with newArch enabled fails with assemble option #2285

Open
bimusiek opened this issue Mar 20, 2024 · 0 comments
Open

[馃悰] Android with newArch enabled fails with assemble option #2285

bimusiek opened this issue Mar 20, 2024 · 0 comments

Comments

@bimusiek
Copy link

Description

While building android with assemble option for the release, it fails with an error.

How to repeat issue and example

./gradlew clean assembleRelease

Fails with:


  CMake Error at /Users/admin/builds/akCTfLXs/0/freeyourmusic/app/renderer/android/app/build/generated/rncli/src/main/jni/Android-rncli.cmake:42 (add_subdirectory):
    add_subdirectory given source
    "/Users/admin/builds/akCTfLXs/0/freeyourmusic/app/renderer/node_modules/react-native-webview/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/admin/builds/akCTfLXs/0/freeyourmusic/app/renderer/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:123 (include)
    CMakeLists.txt:31 (include)


  CMake Error at /Users/admin/builds/akCTfLXs/0/freeyourmusic/app/renderer/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:126 (target_link_libraries):
    Cannot specify link libraries for target "react_codegen_RNImagePickerSpec"
    which is not built by this project.
  Call Stack (most recent call first):
    CMakeLists.txt:31 (include)

Solution

Before running assemble, you have to run build to make sure that there is build folder of node_module's react-native-image-picker.

Additional Information

  • Image Picker version: 7.0.2 (but I have tested with 7.1.1 as well)
  • React Native version: 0.73.6
  • Platform: Android
  • Development Operating System: OSX
  • Dev tools: n/a
@bimusiek bimusiek changed the title [馃悰] Andoird with newArch enabled failes with assemble option [馃悰] Android with newArch enabled fails with assemble option Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant