Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: "BarcodeScanner" plugin is not implemented on android

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

oldjazjefcommented, Nov 5, 2021

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”.

gabriel-arrvdacommented, Jul 22, 2021

well i forgot to say that after i deleted that part of code it works, sorry my fault

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found