capacitor-community / barcode-scanner

A fast and efficient (QR) barcode scanner for Capacitor
MIT License
437 stars 172 forks source link

getting error on build #175

Closed cqsDeepakVerma27 closed 1 year ago

cqsDeepakVerma27 commented 1 year ago

\android\src\main\java\com\getcapacitor\community\barcodescanner\BarcodeScanner.java:3: error: package android.content does not exist import static android.content.Context.MODE_PRIVATE; ^

thegnuu commented 1 year ago

This is usually not an issue of the plugin itself, this might happen if your @capacitor/... module versions are not matching and the issue is created by capacitor itself, for example using an older cli version than the android package or something like that.

Try updating all your dependencies to matching versions and maybe you need to delete your android folder and add it again with npx cap add android (make sure to setup permissions properly after this is done). This should cleanup things and you should be able to use the plugin.

There is nothing more I can do unfortunately ;)