AndreiTelteu / cordova-plugin-qr-barcode-scanner

[not maintained] cross-platform BarcodeScanner for Cordova / PhoneGap with new design for the scaning interface
MIT License
13 stars 21 forks source link

android build fails after adding plugin #1

Open pilz97 opened 4 years ago

pilz97 commented 4 years ago

Expected Behaviour

The build should complete without error.

Actual Behaviour

The build fails, with an error.

Steps to Reproduce

I add the plugin to my cordova project and then try the anroid build.

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Does not matter, because I am not able to build my app.

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Does not matter, because I am not able to build my app.

Cordova CLI version and cordova platform version

cordova --version = 9.0.0 (cordova-lib@9.0.1)
cordova platforms = android v8.0.0

Plugin version

cordova plugin version 8.0.2

Sample Code that illustrates the problem

cordova build android

Logs taken while reproducing problem

`FAILURE: Build failed with an exception.

AndreiTelteu commented 4 years ago

Fixed in my new release 8.0.3. There was a bug in android support library version 23.2.0 https://stackoverflow.com/questions/35648095/android-support-library-23-2-0-error-in-setting-style-style-widget-appcompat-b

To update run commands:

cordova plugin rm cordova-plugin-qr-barcode-scanner
cordova plugin add cordova-plugin-qr-barcode-scanner

However, this update did not work for me and i had to reinstall platform android. cordova platform rm android && cordova platform add android Then reinstall the plugin.

You can also try updating android support library to 23.2.1. I don't know how to do that.