mrousavy / react-native-vision-camera

๐Ÿ“ธ A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.57k stars 1.1k forks source link

๐Ÿ”ง ninja: error: manifest 'build.ninja' still dirty after 100 tries #1941

Closed osaidfaisal12 closed 1 year ago

osaidfaisal12 commented 1 year ago

How were you trying to build the app?

I tried to build my app using "npx react-native run-android" but failed. It is working fine if I uninstall worklets core library and not use frame processor. But when I use frame processor and worklets core then this issue occurs.

Full build logs

info Starting JS server...
info Installing the app...

> Configure project :react-native-reanimated
Android gradle plugin: 7.4.2
Gradle: 8.0.1
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

> Configure project :react-native-vision-camera
[VisionCamera] react-native-worklets-core found, Frame Processors enabled!

> Task :react-native-vision-camera:configureCMakeDebug[arm64-v8a]
C/C++: VisionCamera: Frame Processors enabled!

> Task :react-native-vision-camera:configureCMakeDebug[armeabi-v7a]
C/C++: VisionCamera: Frame Processors enabled!

> Task :react-native-vision-camera:buildCMakeDebug[armeabi-v7a]
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: VisionCamera: Frame Processors enabled!
C/C++: ninja: error: manifest 'build.ninja' still dirty after 100 tries

> Task :react-native-vision-camera:buildCMakeDebug[armeabi-v7a] FAILED
107 actionable tasks: 24 executed, 83 up-to-date

info ๐Ÿ’ก Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-vision-camera:buildCMakeDebug[armeabi-v7a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\LAPTECH LAPTOPS\Desktop\react-native\testcamera\node_modules\react-native-vision-camera\android\.cxx\Debug\2bz5f5l1\armeabi-v7a'
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  ninja: Entering directory `C:\Users\LAPTECH LAPTOPS\Desktop\react-native\testcamera\node_modules\react-native-vision-camera\android\.cxx\Debug\2bz5f5l1\armeabi-v7a'
  [0/1] Re-running CMake...
  [0/1] Re-running CMake...
  -- Configuring done
  -- Configuring done
  -- Generating done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Configuring done
  -- Generating done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Configuring done
  -- Configuring done
  -- Generating done
  -- Generating done
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a
  [0/1] Re-running CMake...
  -- Build files have been written to: C:/Users/LAPTECH LAPTOPS/Desktop/react-native/testcamera/node_modules/react-native-vision-camera/android/.cxx/Debug/2bz5f5l1/armeabi-v7a

  C++ build system [build] failed while executing:
      @echo off
      "C:\\Users\\LAPTECH LAPTOPS\\AppData\\Local\\Android\\Sdk\\cmake\\3.22.1\\bin\\ninja.exe" ^     
        -C ^
        "C:\\Users\\LAPTECH LAPTOPS\\Desktop\\react-native\\testcamera\\node_modules\\react-native-vision-camera\\android\\.cxx\\Debug\\2bz5f5l1\\armeabi-v7a" ^
        VisionCamera
    from C:\Users\LAPTECH LAPTOPS\Desktop\react-native\testcamera\node_modules\react-native-vision-camera\android
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  VisionCamera: Frame Processors enabled!
  ninja: error: manifest 'build.ninja' still dirty after 100 tries

* 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

BUILD FAILED in 2m 3s
error Failed to install the app.

Project dependencies

{
  "name": "testcamera",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "react": "18.2.0",
    "react-native": "0.72.5",
    "react-native-reanimated": "^3.5.4",
    "react-native-vision-camera": "^3.3.1",
    "react-native-worklets-core": "^0.2.1"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@react-native/eslint-config": "^0.72.2",
    "@react-native/metro-config": "^0.72.11",
    "@tsconfig/react-native": "^3.0.0",
    "@types/react": "^18.0.24",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.2.1",
    "eslint": "^8.19.0",
    "jest": "^29.2.1",
    "metro-react-native-babel-preset": "0.76.8",
    "prettier": "^2.4.1",
    "react-test-renderer": "18.2.0",
    "typescript": "4.8.4"
  },
  "engines": {
    "node": ">=16"
  }
}

VisionCamera Version

3.3.1

Target platforms

Android

Operating system

Windows

Can you build the VisionCamera Example app?

Yes, I can successfully build the Example app here

Additional information

mrousavy commented 1 year ago

huh, that's weird. maybe it was the deleteCmakeCache change

mrousavy commented 1 year ago

Does this fix your issue? https://github.com/mrousavy/react-native-vision-camera/pull/1945

james-cohen commented 1 year ago

Exactly the same issue for me, unfortunately that patch doesn't fix it.

I previously had an identical issue when trying to build with the react-native-vision-camera package alone. The issue was due to the path length of the target folder being longer than 160 chars (I think this is a Windows limit) - the issue resolved itself when I moved the project to a parent folder. Unfortunately the explicit error message isn't shown even with verbose logging.

mrousavy commented 1 year ago

ohh, so maybe this is just a Windows error. I don't know, I don't have a windows pc then. If you find a fix please let me know & submit a PR!

osaidfaisal12 commented 1 year ago

Does this fix your issue? #1945

The error disappear. but the app is crashing and it is showing "app keeps stopping" and the below description.

com.facebook.jni.CppException: Compiling JS failed: 1:1:invalid empty parentheses '( )' Buffer size 3 starts with: 280a29 at com.mrousavy.camera.frameprocessor.FrameProcessor.call(Native Method) at com.mrousavy.camera.core.VideoPipeline.init$lambda$0(VideoPipeline.kt:107) at com.mrousavy.camera.core.VideoPipeline.$r8$lambda$EMriwS_FKhtjTFtppM84Z5V8tiI(Unknown Source:0) at com.mrousavy.camera.core.VideoPipeline$$ExternalSyntheticLambda0.onImageAvailable(Unknown Source:2) at android.media.ImageReader$1.run(ImageReader.java:837) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:211) at android.os.Looper.loop(Looper.java:300) at android.os.HandlerThread.run(HandlerThread.java:67)

mrousavy commented 1 year ago

@osaidfaisal12 did you install react-native-worklets-core accordingly? Including the babel plugin, then restart metro with clean cache?

If yes, try upgrading to latest Reanimated.

osaidfaisal12 commented 1 year ago

@osaidfaisal12 did you install react-native-worklets-core accordingly? Including the babel plugin, then restart metro with clean cache?

If yes, try upgrading to latest Reanimated.

Tried everything even download reanimated and latest version of worklets and vision camera but still app is crashing.

info Opening the app on Android... info JS server already running. info Installing the app...

Task :gradle-plugin:compileKotlin UP-TO-DATE Task :gradle-plugin:compileJava NO-SOURCE Task :gradle-plugin:pluginDescriptors UP-TO-DATE Task :gradle-plugin:processResources UP-TO-DATE Task :gradle-plugin:classes UP-TO-DATE Task :gradle-plugin:jar UP-TO-DATE Task :gradle-plugin:inspectClassesForKotlinIC UP-TO-DATE

Configure project :react-native-reanimated Android gradle plugin: 7.4.2 Gradle: 8.0.1 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-vision-camera [VisionCamera] react-native-worklets-core found, Frame Processors enabled!

Task :app:buildCodegenCLI SKIPPED Task :app:generateCodegenSchemaFromJavaScript SKIPPED Task :app:generateCodegenArtifactsFromSchema SKIPPED Task :app:generatePackageList Task :app:preBuild Task :app:preDebugBuild Task :react-native-reanimated:assertLatestReactNativeWithNewArchitectureTask SKIPPED Task :react-native-reanimated:assertMinimalReactNativeVersionTask SKIPPED
Task :react-native-reanimated:assertNoMultipleInstances Task :react-native-reanimated:prepareHeadersForPrefab UP-TO-DATE Task :react-native-reanimated:preBuild Task :react-native-reanimated:preDebugBuild Task :react-native-reanimated:compileDebugAidl NO-SOURCE Task :react-native-vision-camera:preBuild UP-TO-DATE Task :react-native-vision-camera:preDebugBuild UP-TO-DATE Task :react-native-worklets-core:prepareHeaders UP-TO-DATE Task :react-native-worklets-core:preBuild UP-TO-DATE Task :react-native-worklets-core:preDebugBuild UP-TO-DATE Task :react-native-worklets-core:compileDebugAidl NO-SOURCE Task :react-native-vision-camera:compileDebugAidl NO-SOURCE Task :app:compileDebugAidl NO-SOURCE Task :react-native-reanimated:packageDebugRenderscript NO-SOURCE Task :react-native-vision-camera:packageDebugRenderscript NO-SOURCE Task :react-native-worklets-core:packageDebugRenderscript NO-SOURCE Task :app:compileDebugRenderscript NO-SOURCE Task :app:generateDebugBuildConfig UP-TO-DATE Task :app:javaPreCompileDebug UP-TO-DATE Task :react-native-reanimated:writeDebugAarMetadata UP-TO-DATE Task :react-native-vision-camera:writeDebugAarMetadata UP-TO-DATE Task :react-native-worklets-core:writeDebugAarMetadata UP-TO-DATE Task :app:checkDebugAarMetadata UP-TO-DATE Task :app:generateDebugResValues UP-TO-DATE Task :react-native-reanimated:compileDebugRenderscript NO-SOURCE Task :react-native-reanimated:generateDebugResValues UP-TO-DATE Task :react-native-reanimated:generateDebugResources UP-TO-DATE Task :react-native-reanimated:packageDebugResources UP-TO-DATE Task :react-native-vision-camera:compileDebugRenderscript NO-SOURCE Task :react-native-vision-camera:generateDebugResValues UP-TO-DATE Task :react-native-vision-camera:generateDebugResources UP-TO-DATE Task :react-native-vision-camera:packageDebugResources UP-TO-DATE Task :react-native-worklets-core:compileDebugRenderscript NO-SOURCE Task :react-native-worklets-core:generateDebugResValues UP-TO-DATE Task :react-native-worklets-core:generateDebugResources UP-TO-DATE Task :react-native-worklets-core:packageDebugResources UP-TO-DATE Task :app:mapDebugSourceSetPaths UP-TO-DATE Task :app:generateDebugResources UP-TO-DATE Task :app:mergeDebugResources UP-TO-DATE Task :app:createDebugCompatibleScreenManifests UP-TO-DATE Task :app:extractDeepLinksDebug UP-TO-DATE Task :react-native-reanimated:extractDeepLinksDebug UP-TO-DATE Task :react-native-reanimated:processDebugManifest UP-TO-DATE Task :react-native-vision-camera:extractDeepLinksDebug UP-TO-DATE Task :react-native-vision-camera:processDebugManifest UP-TO-DATE Task :react-native-worklets-core:extractDeepLinksDebug UP-TO-DATE Task :react-native-worklets-core:processDebugManifest UP-TO-DATE Task :app:processDebugMainManifest UP-TO-DATE Task :app:processDebugManifest UP-TO-DATE Task :app:processDebugManifestForPackage UP-TO-DATE Task :react-native-reanimated:compileDebugLibraryResources UP-TO-DATE Task :react-native-reanimated:parseDebugLocalResources UP-TO-DATE Task :react-native-reanimated:generateDebugRFile UP-TO-DATE Task :react-native-vision-camera:compileDebugLibraryResources UP-TO-DATE Task :react-native-vision-camera:parseDebugLocalResources UP-TO-DATE Task :react-native-worklets-core:parseDebugLocalResources UP-TO-DATE Task :react-native-worklets-core:generateDebugRFile UP-TO-DATE Task :react-native-vision-camera:generateDebugRFile UP-TO-DATE Task :react-native-worklets-core:compileDebugLibraryResources UP-TO-DATE Task :app:processDebugResources UP-TO-DATE Task :react-native-reanimated:generateDebugBuildConfig UP-TO-DATE Task :react-native-reanimated:javaPreCompileDebug UP-TO-DATE Task :react-native-reanimated:packageNdkLibs NO-SOURCE Task :react-native-reanimated:compileDebugJavaWithJavac UP-TO-DATE Task :react-native-reanimated:bundleLibCompileToJarDebug UP-TO-DATE Task :react-native-vision-camera:generateDebugBuildConfig UP-TO-DATE Task :react-native-worklets-core:generateDebugBuildConfig UP-TO-DATE Task :react-native-worklets-core:javaPreCompileDebug UP-TO-DATE Task :react-native-worklets-core:compileDebugJavaWithJavac UP-TO-DATE Task :react-native-worklets-core:bundleLibCompileToJarDebug UP-TO-DATE Task :react-native-vision-camera:compileDebugKotlin UP-TO-DATE Task :react-native-vision-camera:javaPreCompileDebug UP-TO-DATE Task :react-native-vision-camera:compileDebugJavaWithJavac UP-TO-DATE Task :react-native-vision-camera:bundleLibCompileToJarDebug UP-TO-DATE Task :app:compileDebugJavaWithJavac UP-TO-DATE Task :app:mergeDebugShaders UP-TO-DATE Task :app:compileDebugShaders NO-SOURCE Task :app:generateDebugAssets UP-TO-DATE Task :react-native-reanimated:mergeDebugShaders UP-TO-DATE Task :react-native-reanimated:compileDebugShaders NO-SOURCE Task :react-native-reanimated:generateDebugAssets UP-TO-DATE Task :react-native-reanimated:packageDebugAssets UP-TO-DATE Task :react-native-vision-camera:mergeDebugShaders UP-TO-DATE Task :react-native-vision-camera:compileDebugShaders NO-SOURCE Task :react-native-vision-camera:generateDebugAssets UP-TO-DATE Task :react-native-vision-camera:packageDebugAssets UP-TO-DATE Task :react-native-worklets-core:mergeDebugShaders UP-TO-DATE Task :react-native-worklets-core:compileDebugShaders NO-SOURCE Task :react-native-worklets-core:generateDebugAssets UP-TO-DATE Task :react-native-worklets-core:packageDebugAssets UP-TO-DATE Task :app:mergeDebugAssets UP-TO-DATE Task :app:compressDebugAssets UP-TO-DATE Task :app:processDebugJavaRes NO-SOURCE Task :react-native-reanimated:processDebugJavaRes NO-SOURCE Task :react-native-reanimated:bundleLibResDebug NO-SOURCE Task :react-native-vision-camera:processDebugJavaRes NO-SOURCE Task :react-native-vision-camera:bundleLibResDebug UP-TO-DATE Task :react-native-worklets-core:processDebugJavaRes NO-SOURCE Task :react-native-worklets-core:bundleLibResDebug NO-SOURCE Task :app:mergeDebugJavaResource UP-TO-DATE Task :app:checkDebugDuplicateClasses UP-TO-DATE Task :app:desugarDebugFileDependencies UP-TO-DATE Task :app:mergeExtDexDebug UP-TO-DATE Task :react-native-reanimated:bundleLibRuntimeToDirDebug UP-TO-DATE Task :react-native-vision-camera:bundleLibRuntimeToDirDebug UP-TO-DATE Task :react-native-worklets-core:bundleLibRuntimeToDirDebug UP-TO-DATE Task :app:dexBuilderDebug UP-TO-DATE Task :app:mergeProjectDexDebug UP-TO-DATE Task :app:mergeLibDexDebug UP-TO-DATE Task :app:mergeDebugJniLibFolders UP-TO-DATE Task :react-native-reanimated:configureCMakeDebug[arm64-v8a] Task :react-native-reanimated:buildCMakeDebug[arm64-v8a] Task :react-native-reanimated:configureCMakeDebug[armeabi-v7a] Task :react-native-reanimated:buildCMakeDebug[armeabi-v7a] Task :react-native-reanimated:configureCMakeDebug[x86] Task :react-native-reanimated:buildCMakeDebug[x86] Task :react-native-reanimated:configureCMakeDebug[x86_64] Task :react-native-reanimated:buildCMakeDebug[x86_64] Task :react-native-reanimated:externalNativeBuildDebug Task :react-native-reanimated:mergeDebugJniLibFolders UP-TO-DATE Task :react-native-reanimated:mergeDebugNativeLibs UP-TO-DATE Task :react-native-reanimated:copyDebugJniLibsProjectOnly UP-TO-DATE Task :react-native-worklets-core:configureCMakeDebug[arm64-v8a] Task :react-native-worklets-core:configureCMakeDebug[armeabi-v7a] Task :react-native-worklets-core:configureCMakeDebug[x86] Task :react-native-worklets-core:configureCMakeDebug[x86_64] Task :react-native-worklets-core:generateJsonModelDebug Task :react-native-worklets-core:prefabDebugConfigurePackage UP-TO-DATE

Task :react-native-vision-camera:configureCMakeDebug[arm64-v8a] C/C++: VisionCamera: Frame Processors enabled!

Task :react-native-worklets-core:buildCMakeDebug[arm64-v8a] Task :react-native-worklets-core:buildCMakeDebug[armeabi-v7a] Task :react-native-worklets-core:buildCMakeDebug[x86] Task :react-native-worklets-core:buildCMakeDebug[x86_64] Task :react-native-worklets-core:externalNativeBuildDebug Task :react-native-worklets-core:prefabDebugPackage UP-TO-DATE Task :react-native-vision-camera:buildCMakeDebug[arm64-v8a]

Task :react-native-vision-camera:configureCMakeDebug[armeabi-v7a] C/C++: VisionCamera: Frame Processors enabled!

Task :react-native-vision-camera:buildCMakeDebug[armeabi-v7a]

Task :react-native-vision-camera:configureCMakeDebug[x86] C/C++: VisionCamera: Frame Processors enabled!

Task :react-native-vision-camera:buildCMakeDebug[x86]

Task :react-native-vision-camera:configureCMakeDebug[x86_64] C/C++: VisionCamera: Frame Processors enabled!

Task :react-native-vision-camera:buildCMakeDebug[x86_64] Task :react-native-worklets-core:mergeDebugJniLibFolders UP-TO-DATE Task :react-native-worklets-core:mergeDebugNativeLibs UP-TO-DATE Task :react-native-worklets-core:copyDebugJniLibsProjectOnly UP-TO-DATE Task :react-native-vision-camera:externalNativeBuildDebug Task :react-native-vision-camera:mergeDebugJniLibFolders UP-TO-DATE Task :react-native-vision-camera:mergeDebugNativeLibs UP-TO-DATE Task :react-native-vision-camera:copyDebugJniLibsProjectOnly UP-TO-DATE Task :app:mergeDebugNativeLibs UP-TO-DATE Task :app:stripDebugDebugSymbols UP-TO-DATE Task :app:validateSigningDebug UP-TO-DATE Task :app:writeDebugAppMetadata UP-TO-DATE Task :app:writeDebugSigningConfigVersions UP-TO-DATE Task :app:packageDebug UP-TO-DATE Task :app:createDebugApkListingFileRedirect UP-TO-DATE

Task :app:installDebug Installing APK 'app-debug.apk' on '21061119AG - 12' for :app:debug Installed on 1 device.

BUILD SUCCESSFUL in 55s 126 actionable tasks: 30 executed, 96 up-to-date info Connecting to the development server... info Starting the app on "003454670508"... Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.campro/.MainActivity } BUNDLE ./index.js

LOG Running "campro" with {"rootTag":11} LOG Loading react-native-worklets-core... LOG Worklets loaded successfully LOG granted BUNDLE ./index.js

osaidfaisal12 commented 1 year ago

@mrousavy on my node terminal after "npx react-native run-android" it is showing "Frame Processor threw an error: Unexpected token ')'". Also now the app is not crashing and "Frame Processor threw an error: Unexpected token ')'" this error is running in loop. In package/android/build.gradle on lin 63 I am having error "unable to resolve class GradleException" and on line 22 "unable to resolve class Gradle".

zjkettell commented 1 year ago

I believe this is just an issue on Windows, I was running into it as well while making Android builds, until I swapped to my Macbook and suddenly had no build issues.

GnApollo commented 1 year ago

Just a weird problem with Windows. I made it work just by moving the project folder to a shorter path. From C:\Users\This PC\OneDrive\Desktop\Personal\AppName to C:\Project\AppName

james-cohen commented 1 year ago

Yep also confirmed the problem goes away when you move the project to a directory with a shorter absolute file path. I've spent an unnecessary amount of time trying to find other workarounds involving CMake and ninja configuration and none of it made any difference. Ultimately it seems like an issue with ninja and Windows rather than anything specific to this project

mrousavy commented 1 year ago

Yea this sucks. Windows paths are weird and very wanky when used with such cross-platform build systems. I think we can close this as this is not related to my library

saquibhayat26 commented 10 months ago

Yep also confirmed the problem goes away when you move the project to a directory with a shorter absolute file path. I've spent an unnecessary amount of time trying to find other workarounds involving CMake and ninja configuration and none of it made any difference. Ultimately it seems like an issue with ninja and Windows rather than anything specific to this project

thanks @james-cohen , this worked for me

GaneshNawghare commented 10 months ago

Just a weird problem with Windows. I made it work just by moving the project folder to a shorter path. From C:\Users\This PC\OneDrive\Desktop\Personal\AppName to C:\Project\AppName @GnApollo this is worked for me. thanku so much

alidf92 commented 9 months ago

Exactly the same issue for me, unfortunately that patch doesn't fix it.

I previously had an identical issue when trying to build with the react-native-vision-camera package alone. The issue was due to the path length of the target folder being longer than 160 chars (I think this is a Windows limit) - the issue resolved itself when I moved the project to a parent folder. Unfortunately the explicit error message isn't shown even with verbose logging.

Thank you

JmePaz commented 9 months ago

For those who try a shorter path directory of project and still does not work.

I suffer the same experiences and even try moving in a shorter directory won't work.

What fixes my problems in Windows is syncing the time. image

Go to Date & Time > Additional Settings> Sync Now.

Even though you set the time zone automatically, still try the Sync Now button (chances are there might be delay in time)

I found the solution here: https://github.com/ninja-build/ninja/issues/1599

mlhtnc commented 8 months ago

Exactly the same issue for me, unfortunately that patch doesn't fix it.

I previously had an identical issue when trying to build with the react-native-vision-camera package alone. The issue was due to the path length of the target folder being longer than 160 chars (I think this is a Windows limit) - the issue resolved itself when I moved the project to a parent folder. Unfortunately the explicit error message isn't shown even with verbose logging.

Thank you, I did not expect this to solve my problem but it did!

tpwatson commented 8 months ago

Exactly the same issue for me, unfortunately that patch doesn't fix it. I previously had an identical issue when trying to build with the react-native-vision-camera package alone. The issue was due to the path length of the target folder being longer than 160 chars (I think this is a Windows limit) - the issue resolved itself when I moved the project to a parent folder. Unfortunately the explicit error message isn't shown even with verbose logging.

Thank you, I did not expect this to solve my problem but it did!

Solved this issue for me too ๐Ÿ™๐Ÿ‘

xianguoGou commented 8 months ago

Just a weird problem with Windows. I made it work just by moving the project folder to a shorter path. From C:\Users\This PC\OneDrive\Desktop\Personal\AppName to C:\Project\AppName

has been solved, thank you

Rc85 commented 7 months ago

After a little digging, I found this. For someone like me who is building projects in a mono repo, I cannot just simply move directories. I'm pretty much already at the root of the drive (F:/Projects) but my RN projects live inside directories like client/mobile/ that uses imports from ./_shared and such.

Hopefully the patch in the link can be incorporated into this library.

Elijah699 commented 6 months ago

Exactly the same issue for me, unfortunately that patch doesn't fix it.

I previously had an identical issue when trying to build with the react-native-vision-camera package alone. The issue was due to the path length of the target folder being longer than 160 chars (I think this is a Windows limit) - the issue resolved itself when I moved the project to a parent folder. Unfortunately the explicit error message isn't shown even with verbose logging.

Thanks @james-cohen for sharing this here, it resolved the issue for me.

RaguRam1991 commented 4 months ago

Just a weird problem with Windows. I made it work just by moving the project folder to a shorter path. From C:\Users\This PC\OneDrive\Desktop\Personal\AppName to C:\Project\AppName

it worked for me.

Ali-Raza-Gill commented 4 months ago

i also get this error , but i didn't resolved it

Task :react-native-reanimated:buildCMakeRelWithDebInfo[armeabi-v7a] FAILED C/C++: ninja: error: manifest 'build.ninja' still dirty after 100 tries

FAILURE: Build failed with an exception.

BUILD FAILED in 3m 38s

GnApollo commented 4 months ago

C:\Users\Admin\Desktop\Traveloacco UserProfile\travelacco-mobile-rn

Traveloacco UserProfile contains space.

try to move your project travelacco-mobile-rn in Desktop.