Hi Guys,
I have been using the Barcode Scanner plugin for around 2 years and I have had no issue with it, it has been perfect.
However today when uploading a new project to Phonegap im getting errors when building the app into Android. If I deselect the plugin from the build options the APK is created as normal, however as soon as I select the plugin in the build on AA I get a build error in Phonegap.
Im also building on the Windows platform and this has managed to be built successfully with the bar code scanner plugin however my usual function of using the scanner is not working at all?
For Reference I am using:
Alpha Build: Version 12.4.1, Build 3603.
Phone Gap Build: 3.5.0
Also here is the phonegap build log for Android with the plugin selected:
Thanks.
I have been using the Barcode Scanner plugin for around 2 years and I have had no issue with it, it has been perfect.
However today when uploading a new project to Phonegap im getting errors when building the app into Android. If I deselect the plugin from the build options the APK is created as normal, however as soon as I select the plugin in the build on AA I get a build error in Phonegap.
Im also building on the Windows platform and this has managed to be built successfully with the bar code scanner plugin however my usual function of using the scanner is not working at all?
For Reference I am using:
Alpha Build: Version 12.4.1, Build 3603.
Phone Gap Build: 3.5.0
Also here is the phonegap build log for Android with the plugin selected:
-compile:
[javac] Compiling 10 source files to /project/bin/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:26: error: package com.google.zxing.client.android does not exist
[javac] import com.google.zxing.client.android.Intents;
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:173: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.CAMERA_ID, obj.optBoolean(PREFER_FRONTCAMERA, false) ? 1 : 0);
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:174: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.SHOW_FLIP_CAMERA_BUTTON, obj.optBoolean(SHOW_FLIP_CAMERA_BUTTON, false));
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:176: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.FORMATS, obj.optString(FORMATS));
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:179: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.PROMPT_MESSAGE, obj.optString(PROMPT));
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:182: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.ORIENTATION_LOCK, obj.optString(ORIENTATION));
[javac] ^
[javac] 6 errors
[javac] 3 warnings
BUILD FAILED
/android-sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/android-sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Total time: 4 seconds
[javac] Compiling 10 source files to /project/bin/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:26: error: package com.google.zxing.client.android does not exist
[javac] import com.google.zxing.client.android.Intents;
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:173: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.CAMERA_ID, obj.optBoolean(PREFER_FRONTCAMERA, false) ? 1 : 0);
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:174: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.SHOW_FLIP_CAMERA_BUTTON, obj.optBoolean(SHOW_FLIP_CAMERA_BUTTON, false));
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:176: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.FORMATS, obj.optString(FORMATS));
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:179: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.PROMPT_MESSAGE, obj.optString(PROMPT));
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:182: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.ORIENTATION_LOCK, obj.optString(ORIENTATION));
[javac] ^
[javac] 6 errors
[javac] 3 warnings
BUILD FAILED
/android-sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/android-sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
Total time: 4 seconds
Comment