Skip to content

πŸ› [CMake] Android build fails after RN 0.75 β†’ 0.76 upgrade: missing generated codegen/jni directories #3651Β #3652

Description

@OPEN-9

What's happening?

After upgrading React Native from 0.75.5 to 0.76.9, the Android build fails. CMake reports that generated/source/codegen/jni/ directories are missing:

Reproduceable Code

"dependencies": {
    "@bam.tech/react-native-image-resizer": "^3.0.10",
    "@emoji-mart/data": "^1.2.1",
    "@gluestack-style/react": "^1.0.56",
    "@gluestack-ui/config": "^1.1.18",
    "@gluestack-ui/themed": "^1.1.31",
    "@notifee/react-native": "^9.1.2",
    "@react-native-async-storage/async-storage": "^1.23.1",
    "@react-native-camera-roll/camera-roll": "^7.10.1",
    "@react-native-clipboard/clipboard": "^1.14.1",
    "@react-native-community/audio-toolkit": "^2.0.3",
    "@react-native-community/netinfo": "^11.4.1",
    "@react-native-firebase/analytics": "18.9.0",
    "@react-native-firebase/app": "18.9.0",
    "@react-native-firebase/messaging": "18.9.0",
    "@react-navigation/bottom-tabs": "^6.5.20",
    "@react-navigation/native": "^6.1.17",
    "@react-navigation/native-stack": "^6.9.26",
    "@shopify/flash-list": "^1.6.4",
    "@types/ramda": "^0.29.12",
    "ahooks": "^3.7.11",
    "camelcase-keys": "^9.1.3",
    "date-holidays": "^3.23.17",
    "dayjs": "^1.11.11",
    "i18next": "^22.5.1",
    "immer": "^10.1.1",
    "pinyin-pro": "^3.21.0",
    "ramda": "^0.30.0",
    "react": "18.3.1",
    "react-hook-form": "^7.52.1",
    "react-i18next": "^14.1.1",
    "react-native": "0.76.9",
    "react-native-audio-recorder-player": "^3.6.10",
    "react-native-audio-session": "^0.0.6",
    "react-native-autolink": "^4.2.0",
    "react-native-blob-util": "^0.19.9",
    "react-native-circular-progress": "^1.4.1",
    "react-native-common-date-picker": "^2.3.9",
    "react-native-compressor": "^1.12.0",
    "react-native-device-info": "^11.1.0",
    "react-native-fs": "^2.20.0",
    "react-native-gesture-handler": "2.23.1",
    "react-native-haptic-feedback": "^2.2.0",
    "react-native-image-picker": "^7.1.2",
    "react-native-image-viewing": "^0.2.2",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-markdown-display": "^7.0.2",
    "react-native-mime-types": "^2.5.0",
    "react-native-pager-view": "^6.3.1",
    "react-native-pdf": "^6.7.5",
    "react-native-permissions": "^4.1.5",
    "react-native-pie-chart": "^3.0.2",
    "react-native-reanimated": "3.16.7",
    "react-native-safe-area-context": "^4.10.1",
    "react-native-screens": "3.37.0",
    "react-native-section-list-get-item-layout": "^2.2.3",
    "react-native-signature-canvas": "^4.7.2",
    "react-native-svg": "15.13.0",
    "react-native-swipe-list-view": "^3.2.9",
    "react-native-tab-view": "^3.5.2",
    "react-native-uuid": "^2.0.2",
    "react-native-vector-icons": "^10.1.0",
    "react-native-video": "6.10.2",
    "react-native-video-player": "^0.16.3",
    "react-native-vision-camera": "4.5.0",
    "react-native-webview": "13.10.5",
    "zustand": "^4.5.2"
  },

Relevant log output

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ❀️
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /Users/openg/Documents/www/omelinkapp/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to true!
[VisionCamera] react-native-worklets-core not found, Frame Processors are disabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to false!

> Task :app:externalNativeBuildCleanDebug FAILED
Clean react_codegen_rncameraroll-arm64-v8a, react_codegen_RNVectorIconsSpec-arm64-v8a, react_codegen_safeareacontext-arm64-v8a, react_codegen_RNPermissionsSpec-arm64-v8a, react_codegen_rnflashlist-arm64-v8a, react_codegen_rngesturehandler_codegen-arm64-v8a, react_codegen_RNCWebViewSpec-arm64-v8a, appmodules-arm64-v8a, react_codegen_RNHapticFeedbackSpec-arm64-v8a, react_codegen_ReactNativeBlobUtilSpec-arm64-v8a, react_codegen_rnsvg-arm64-v8a, react_codegen_Compressor-arm64-v8a, react_codegen_rnasyncstorage-arm64-v8a, react_codegen_rnclipboard-arm64-v8a, react_codegen_rnreanimated-arm64-v8a, react_codegen_rnpdf-arm64-v8a, react_codegen_pagerview-arm64-v8a, react_codegen_RNImagePickerSpec-arm64-v8a, react_codegen_rnscreens-arm64-v8a, react_codegen_RNImageResizerSpec-arm64-v8a
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:9 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/@bam.tech/react-native-image-resizer/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:11 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/@react-native-async-storage/async-storage/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:12 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/@react-native-camera-roll/camera-roll/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:13 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/@react-native-clipboard/clipboard/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:19 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/@shopify/flash-list/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:21 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-blob-util/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:22 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-compressor/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:25 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-gesture-handler/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:26 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-haptic-feedback/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:27 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-image-picker/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:28 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-pager-view/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:29 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-pdf/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:30 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-permissions/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:31 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-reanimated/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:35 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-vector-icons/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:38 (add_subdirectory):
C/C++:   add_subdirectory given source
C/C++:   "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-webview/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/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
C/C++:   CMakeLists.txt:31 (include)
C/C++: CMake Error at /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:103 (target_link_libraries):
C/C++:   Cannot specify link libraries for target "react_codegen_RNImageResizerSpec"
C/C++:   which is not built by this project.
C/C++: Call Stack (most recent call first):
C/C++:   CMakeLists.txt:31 (include)
C/C++: ninja: error: rebuilding 'build.ninja': subcommand failed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:externalNativeBuildCleanDebug'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/Users/openg/Documents/www/omelinkapp/android/app/.cxx/Debug/1e341u6d/arm64-v8a'
  [0/2] Re-checking globbed directories...
  [1/2] Re-running CMake...
  -- Configuring incomplete, errors occurred!
  See also "/Users/openg/Documents/www/omelinkapp/android/app/.cxx/Debug/1e341u6d/arm64-v8a/CMakeFiles/CMakeOutput.log".
  FAILED: build.ninja 
  /Users/openg/Library/Android/sdk/cmake/3.22.1/bin/cmake --regenerate-during-build -S/Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup -B/Users/openg/Documents/www/omelinkapp/android/app/.cxx/Debug/1e341u6d/arm64-v8a
  
  C++ build system [clean] failed while executing:
      /Users/openg/Library/Android/sdk/cmake/3.22.1/bin/ninja \
        -C \
        /Users/openg/Documents/www/omelinkapp/android/app/.cxx/Debug/1e341u6d/arm64-v8a \
        clean
    from /Users/openg/Documents/www/omelinkapp/android/app
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:9 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/@bam.tech/react-native-image-resizer/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:11 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/@react-native-async-storage/async-storage/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:12 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/@react-native-camera-roll/camera-roll/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:13 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/@react-native-clipboard/clipboard/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:19 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/@shopify/flash-list/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:21 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-blob-util/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:22 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-compressor/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:25 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-gesture-handler/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:26 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-haptic-feedback/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:27 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-image-picker/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:28 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-pager-view/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:29 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-pdf/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:30 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-permissions/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:31 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:35 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-vector-icons/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:38 (add_subdirectory):
    add_subdirectory given source
    "/Users/openg/Documents/www/omelinkapp/node_modules/react-native-webview/android/build/generated/source/codegen/jni/"
    which is not an existing directory.
  Call Stack (most recent call first):
    /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:100 (include)
    CMakeLists.txt:31 (include)
  
  
  CMake Error at /Users/openg/Documents/www/omelinkapp/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:103 (target_link_libraries):
    Cannot specify link libraries for target "react_codegen_RNImageResizerSpec"
    which is not built by this project.
  Call Stack (most recent call first):
    CMakeLists.txt:31 (include)
  
  
  ninja: error: rebuilding 'build.ninja': subcommand failed

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 7s

Camera Device

{
  "maxZoom": 123.75,
  "minExposure": -8,
  "supportsRawCapture": false,
  "name": "Back Dual Wide Camera",
  "position": "back",
  "isMultiCam": true,
  "supportsFocus": true,
  "minZoom": 1,
  "hasTorch": true,
  "sensorOrientation": "portrait",
  "hasFlash": true,
  "supportsLowLightBoost": false,
  "id": "com.apple.avfoundation.avcapturedevice.built-in_video:6",
  "neutralZoom": 2,
  "minFocusDistance": 2,
  "maxExposure": 8,
  "physicalDevices": [
    "ultra-wide-angle-camera",
    "wide-angle-camera"
  ],
  "hardwareLevel": "full",
  "formats": []
}

Device

SM-G9900

VisionCamera Version

4.7.2

Can you reproduce this issue in the VisionCamera Example app?

I didn't try (⚠️ your issue might get ignored & closed if you don't try this)

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions