-
Notifications
You must be signed in to change notification settings - Fork 220
Unable to build with Vision Camera 3.0.0-rc4 #156
Comments
Currently facing the same problem, did you manage to solve it? |
Same error 😭 |
I'm still getting this error when I add vision-camera-code-scanner to my project, even though 3.0.0-rc5 (with the new react-native-worklets-core) builds fine for Android on my PC. I'm even using the updated branch (from rkmackinnon), which is supposed to work with Vision Camera v3 (circa March 2023). What I'm using right now: |
any advance in this ? |
@DeveloperMCD Unfortunately, we're still facing the same issue even after using your v3 barcode scanner. |
Yes, as I said in the OP, the updated fork which is supposed to work with the "March 2023 version" of Vision Camera v3 does not currently build. I tried RC3 and the latest RCs as well. Someone's going to have to dig into the code and update it again, I guess. Let's be clear; I didn't do any of the coding on this fork. I just grabbed RKMackinnon's fork so I could publish it to a public NPM registry (and thus easily include it in React Native projects). Now the real hard work begins though -- someone needs to help fix this library (Vision Camera Code Scanner) which is been completely abandoned -- and apparently there are < 1 current contributors to this project: i.e., people who know the code and/or willing to contribute and/or have the skills to bring it up to speed. |
I'll tell you what though: the MacKinnon fork is certainly the starting point you want to start from. It's the best version or collection of code for "Vision Camera Code Scanner" on the planet right now. It has all the fixes that currently exist somewhere. MacKinnon started out by bringing the whole thing up to speed with V3, albeit the March 2023 version. If you started from the original Vision Camera Code Scanner, you'd have a lot more work to do. The problem is, there's more fixing to do now. But it's not like those needed fixes can be found completed in some other repository out there. No, that is work yet-to-be-done. |
any updates? |
This doesn't seem to work also |
Facing the same issue here. any solution yet? |
Using RKMacKinnon's latest changes, I got everything to build successfully. However, when I try to use the library, I get some new errors now: ERROR Error: Exception in HostFunction: java.lang.NullPointerException: getPlugin(name, options) must not be null, js engine: hermes |
https://www.npmjs.com/package/vision-camera-v3-barcode-scanner The readme is a bit out of date -- I renamed the package to "vision-camera-v3-barcode-scanner" when I published it publicly to NPM. import {BarcodeFormat, useScanBarcodes, scanBarcodes} from 'vision-camera-v3-barcode-scanner'; |
Still encountering this error. |
same error |
I tried and it built successfully, Great Job! |
anyone have solution for this error, still facing error |
VisionCamera: Frame Processors enabled! i am still geting this error while building android |
VisionCamera: Frame Processors enabled! i am still facing this issue |
same error |
+1 |
+1 |
check this out guys, react-native-vision-camera now does QR/Barcode scanning |
I've also just released a frame processor rebuilt for vision-camera 3+ that can do high (configurable) fps scanning and provides highlighting of detected barcodes out-of-the-box. You can check a working demo on GitHub @mgcrea/vision-camera-barcode-scanner. Hope it can help others. |
Does this work on apps that use This is the error I'm getting
UPDATE I removed |
@natemartins I had android issues as well in the past but they went away, can you try the latest version v0.5.1 and see if you still encounter issues building vision-camera? |
Updating minSdkVersion to 26 solved this issue for me for now in android. Looking for a better solution if available. |
@mgcrea Updating to v0.5.1 fixed it. Note that you would have to set |
Gradle 8.0.1 babelconfig.js (actually think this isn't needed in v3, removing doesn't change error though):
For bar codes (not using a package just this lib and works on iOS):
But I still get errors trying to build android (in RN CLI) 🤔
|
I'm on React-Native 0.72.4, React-Native-Vision-Camera 3.0.0-rc4
Getting this error:
/home/matthew/dev/stackbayapp/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:40: error: VisionCameraCodeScannerPlugin is not abstract and does not override abstract method callback(Frame,ReadableNativeMap) in FrameProcessorPlugin
public class VisionCameraCodeScannerPlugin extends FrameProcessorPlugin {
^
/home/matthew/dev/stackbayapp/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:62: error: method does not override or implement a method from a supertype
@OverRide
^
/home/matthew/dev/stackbayapp/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:251: error: constructor FrameProcessorPlugin in class FrameProcessorPlugin cannot be applied to given types;
super("scanCodes");
^
required: no arguments
found: String
reason: actual and formal argument lists differ in length
/home/matthew/dev/stackbayapp/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPluginPackage.java:19: error: cannot find symbol
FrameProcessorPlugin.register(new VisionCameraCodeScannerPlugin());
^
symbol: method register(VisionCameraCodeScannerPlugin)
location: class FrameProcessorPlugin
4 errors
FAILURE: Build failed with an exception.
Execution failed for task ':vision-camera-code-scanner:compileDebugJavaWithJavac'.
The text was updated successfully, but these errors were encountered: