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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 ninja: error: manifest 'build.ninja' still dirty after 100 tries #1941

Closed
4 of 5 tasks
osaidfaisal12 opened this issue Oct 6, 2023 · 24 comments · May be fixed by #1945
Closed
4 of 5 tasks

🔧 ninja: error: manifest 'build.ninja' still dirty after 100 tries #1941

osaidfaisal12 opened this issue Oct 6, 2023 · 24 comments · May be fixed by #1945
Labels
🔧 build error Issue is related to building VisionCamera in your project

Comments

@osaidfaisal12
Copy link

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

@osaidfaisal12 osaidfaisal12 added the 🔧 build error Issue is related to building VisionCamera in your project label Oct 6, 2023
@mrousavy
Copy link
Owner

mrousavy commented Oct 6, 2023

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

@mrousavy mrousavy changed the title ninja: error: manifest 'build.ninja' still dirty after 100 tries 🔧 🔧 ninja: error: manifest 'build.ninja' still dirty after 100 tries Oct 6, 2023
@mrousavy
Copy link
Owner

mrousavy commented Oct 6, 2023

Does this fix your issue? #1945

@james-cohen
Copy link

james-cohen commented Oct 6, 2023

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
Copy link
Owner

mrousavy commented Oct 6, 2023

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
Copy link
Author

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
Copy link
Owner

mrousavy commented Oct 6, 2023

@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
Copy link
Author

@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
Copy link
Author

@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
Copy link

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
Copy link

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
Copy link

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
Copy link
Owner

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
Copy link

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
Copy link

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
Copy link

alidf92 commented Feb 10, 2024

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
Copy link

JmePaz commented Feb 18, 2024

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:
ninja-build/ninja#1599

@mlhtnc
Copy link

mlhtnc commented Feb 29, 2024

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
Copy link

tpwatson commented Mar 14, 2024

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
Copy link

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
Copy link

Rc85 commented Mar 22, 2024

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/<app_name> that uses imports from ./_shared and such.

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

@Elijah699
Copy link

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
Copy link

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
Copy link

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.

  • What went wrong:
    Execution failed for task ':react-native-reanimated:buildCMakeRelWithDebInfo[armeabi-v7a]'.

com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\Admin\Desktop\Traveloacco UserProfile\travelacco-mobile-rn\node_modules\react-native-reanimated\android.cxx\RelWithDebInfo\434gs6t3\armeabi-v7a'
[0/2] Re-checking globbed directories...
[1/2] Re-running CMake...
-- Configuring done
-- Generating done
C++ build system [build] failed while executing:
@echo off
"C:\Users\Admin\AppData\Local\Android\Sdk\cmake\3.22.1\bin\ninja.exe" ^
-C ^
"C:\Users\Admin\Desktop\Traveloacco UserProfile\travelacco-mobile-rn\node_modules\react-native-reanimated\android\.cxx\RelWithDebInfo\434gs6t3\armeabi-v7a" ^
reanimated
from C:\Users\Admin\Desktop\Traveloacco UserProfile\travelacco-mobile-rn\node_modules\react-native-reanimated\android
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 3m 38s

@GnApollo
Copy link

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

Traveloacco UserProfile contains space.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 build error Issue is related to building VisionCamera in your project
Projects
None yet
Development

Successfully merging a pull request may close this issue.