Error: "BarcodeScanner" plugin is not implemented on android
See original GitHub issueDescribe the bug
After i follow configurations steps and running it both on device and emulator i get error Error: "BarcodeScanner" plugin is not implemented on android
Version 2.01
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Barcode scanner plugin is not working in android ...
A potential workaround is to change your target sdk version to 22 (Lollipop) instead of 23 (Marshmallow). Try this in config.xml
Read more >@capacitor-community/barcode-scanner - npm
A fast and efficient (QR) barcode scanner for Capacitor. Latest version: 3.0.0, ... On Android, register the plugin in your main activity:.
Read more >Error when I build with PhoneGap BarcodeScanner (ionic ...
Unfortunately, it looks like this plugin uses the old way of including native Android libraries by using compile instead of implementation .
Read more >Troubleshooting Android Issues | Capacitor Documentation
If still getting the "Plugin not implemented" error, make sure you are not using service workers, that prevents Capacitor's and Plugins code from...
Read more >How to Build a Capacitor Plugin for Camera Preview
Next, we are going to implement the Web, Android and iOS parts of the ... return {resolution: resolution}; }else{ throw new Error('DCE not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I know the issue is already closed, but I would like to add some notes. I got the same error “plugin is not implemented on android”. The reason in my case for this was the used angular “monorepo” project structure.
Capacitor checks package.json for plugins. Because my ionic project within the monorepo under projects/my-app had a package.json, capacitor used this to check for plugins to include under android/capacitor.settings.gradle. Dependencies in monorepos are installed in the root of the repo, the capacitor plugins (e.g BarcodeScanner) were listed in the root package.json instead of the apps package.json.
So if you run into a similiar problem, list the npm package for the capacitor plugin within your apps package.json “dependencies”.
well i forgot to say that after i deleted that part of code it works, sorry my fault