Closed Nandha-d3v closed 10 months ago
This worked for me, /parsers where renamed to /types in the latest version of vision camera so the import for Orientations should be import com.mrousavy.camera.types.Orientation;
. There was also an issue with no default constructor for CodeScannerProcessorPlugin.java
Should be fixed with https://github.com/mgcrea/vision-camera-barcode-scanner/releases/tag/0.6.0
Here is the issue when I'm trying to run with Vision Camera V3 `> Task :mgcrea_vision-camera-barcode-scanner:compileDebugJavaWithJavac FAILED 79 actionable tasks: 22 executed, 57 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
/Users/CheckV3/node_modules/@mgcrea/vision-camera-barcode-scanner/android/src/main/java/com/visioncameracodescanner/CodeScannerProcessorPlugin.java:20: error: package com.mrousavy.camera.parsers does not exist import com.mrousavy.camera.parsers.Orientation; ^ /Users/CheckV3/node_modules/@mgcrea/vision-camera-barcode-scanner/android/src/main/java/com/visioncameracodescanner/CodeScannerProcessorPlugin.java:30: error: constructor FrameProcessorPlugin in class FrameProcessorPlugin cannot be applied to given types; public CodeScannerProcessorPlugin() { ^ required: Map<String,Object> found: no arguments reason: actual and formal argument lists differ in length /Users/CheckV3/node_modules/@mgcrea/vision-camera-barcode-scanner/android/src/main/java/com/visioncameracodescanner/CodeScannerProcessorPlugin.java:68: error: package Orientation does not exist Orientation.Companion.fromUnionValue(frame.getOrientation()).toDegrees() ^ 3 errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':mgcrea_vision-camera-barcode-scanner:compileDebugJavaWithJavac'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 9s`
Other dependency versions are as follows