vision-camera-barcode-scanner icon indicating copy to clipboard operation
vision-camera-barcode-scanner copied to clipboard

Android: New Arch

Open patlux opened this issue 4 months ago • 1 comments

It works fine on iOS, but on android I'm getting the following error

> Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ❤️
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: https://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /Users/.../node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to true!
[VisionCamera] react-native-worklets-core found, Frame Processors are enabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to false!
WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (34.0.0) for Android Gradle Plugin 8.5.0.
Android SDK Build Tools 34.0.0 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

> Task :mgcrea_vision-camera-barcode-scanner:generateCodegenSchemaFromJavaScript FAILED
node:fs:1640
  const stats = binding.lstat(
                        ^

Error: ENOENT: no such file or directory, lstat '/Users/patwoz/dev/.../node_modules/@mgcrea/vision-camera-barcode-scanner/src'
    at Object.lstatSync (node:fs:1640:25)
    at /Users/patwoz/dev/.../node_modules/@react-native/codegen/lib/cli/combine/combine-js-to-schema.js:108:15
    at Array.flatMap (<anonymous>)
    at expandDirectoriesIntoFiles (/Users/patwoz/dev/.../node_modules/@react-native/codegen/lib/cli/combine/combine-js-to-schema.js:107:6)
    at combineSchemasInFileList (/Users/patwoz/dev/.../node_modules/@react-native/codegen/lib/cli/combine/combine-js-to-schema.js:123:28)
    at combineSchemasInFileListAndWriteToFile (/Users/patwoz/dev/.../node_modules/@react-native/codegen/lib/cli/combine/combine-js-to-schema.js:142:20)
    at Object.<anonymous> (/Users/patwoz/dev/.../node_modules/@react-native/codegen/lib/cli/combine/combine-js-to-schema-cli.js:76:1)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'lstat',
  path: '/Users/patwoz/dev/.../node_modules/@mgcrea/vision-camera-barcode-scanner/src'
}

Node.js v20.17.0

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mgcrea_vision-camera-barcode-scanner:generateCodegenSchemaFromJavaScript'.
> Process 'command 'node'' finished with non-zero exit value 1

Any idea?

patlux avatar Oct 02 '24 08:10 patlux