You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
@justinhenricks builds fine for me from the CLI and AndroidStudio. For some reason in your setup the .aar for ZXing is not being imported into the project which is why you get the above errors. When you open the project in AndroidStudio do you do File->New-Import Project and select the $Project_name/platforms/android directory?
Apparently, both plugins don't work side by side. Removing the "cordova-plugin-qrscanner" plugin did the trick for me. I can now build it for Android without errors.
This actually ended up being our exact situation as well. QR Scanner and Barcode Scanner cannot be installed at the same time! Good to know, consider this closed. Thanks!
Expected Behaviour
Android to build successfully
Actual Behaviour
Getting these errors:
BarcodeScanner.java:178: error: cannot find symbol
intentScan.putExtra(Intents.Scan.SHOW_FLIP_CAMERA_BUTTON, obj.optBoolean(SHOW_FLIP_CAMERA_BUTTON, false));
^
symbol: variable SHOW_FLIP_CAMERA_BUTTON
location: class Scan
BarcodeScanner.java:179: error: cannot find symbol
intentScan.putExtra(Intents.Scan.SHOW_TORCH_BUTTON, obj.optBoolean(SHOW_TORCH_BUTTON, false));
^
symbol: variable SHOW_TORCH_BUTTON
location: class Scan
BarcodeScanner.java:180: error: cannot find symbol
intentScan.putExtra(Intents.Scan.TORCH_ON, obj.optBoolean(TORCH_ON, false));
^
symbol: variable TORCH_ON
location: class Scan
BarcodeScanner.java:181: error: cannot find symbol
intentScan.putExtra(Intents.Scan.SAVE_HISTORY, obj.optBoolean(SAVE_HISTORY, false));
^
symbol: variable SAVE_HISTORY
location: class Scan
BarcodeScanner.java:183: error: cannot find symbol
intentScan.putExtra(Intents.Scan.RESULT_DISPLAY_DURATION_MS, "" + obj.optLong(RESULTDISPLAY_DURATION));
^
symbol: variable RESULT_DISPLAY_DURATION_MS
location: class Scan
BarcodeScanner.java:192: error: cannot find symbol
intentScan.putExtra(Intents.Scan.ORIENTATION_LOCK, obj.optString(ORIENTATION));
^
symbol: variable ORIENTATION_LOCK
location: class Scan
BarcodeScanner.java:254: error: cannot find symbol
intentEncode.setAction(Intents.Encode.ACTION);
^
symbol: variable Encode
location: class Intents
BarcodeScanner.java:255: error: cannot find symbol
intentEncode.putExtra(Intents.Encode.TYPE, type);
^
symbol: variable Encode
location: class Intents
BarcodeScanner.java:256: error: cannot find symbol
intentEncode.putExtra(Intents.Encode.DATA, data);
Attempting to build in Android Studio 2.2.3
Plugin version
The text was updated successfully, but these errors were encountered: