-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Error with the Barcode scanner on build #3906
Comments
@loicparent I got the same issue. It can be fixed by applying this patch phonegap/phonegap-plugin-barcodescanner#851. I guess because the project is stale, it is not going to be merged. I'm going to try the capacitor plugin. I will miss the torch option though. That could be handy in dimly lit environments. |
Thank you for your reply! |
Can anyone provide information on how to get this working from the PR? I had to fork and apply the code change myself. Note the PR does fix the issue btw. |
Hello,
I'm submitting a ...
[ x] bug report
[ ] feature request
[ ] support request
Current behavior:
I encounter an issue when I try to build on Android Studio an app using the plugin ionic-native + barcode scanner.
In fact, It seems that this plugin is not compatible with the version 12.2 of Angular.
More precisely, I have an error with the use of the method "compile" instead of the method "implementation".
Also, I notice that the phonegap project is archived.
So my question is:
Is this expected to be updated to be compatible or do I have to switch to the capacitor plugin?
Expected behavior:
The build should be generated correctly.
Steps to reproduce:
Install Ionic + Capacitor at the latest version and with Angular 12.2
Install the barcode plugins
=> npm install phonegap-plugin-barcodescanner
=> npm install @awesome-cordova-plugins/barcode-scanner
=> ionic cap sync
Open Android Studio with the build
=> ionic cap run anroid --open
Try to run the project to see the error.
Related code:
Similar to this code : https://ionicframework.com/docs/native/barcode-scanner
Error indicated:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):Thanks,
Loïc
The text was updated successfully, but these errors were encountered: