When I add phonegap-plugin-barcodescanner I get following error for android:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class barcodescanner.xservices.nl.barcodescanner.BuildConfig found in modules jetified-barcodescanner-release-2.1.5-runtime.jar (:barcodescanner-release-2.1.5:) and jetified-barcodescanner-release-2.1.5-runtime.jar (barcodescanner-release-2.1.5.aar)
Duplicate class com.google.zxing.BarcodeFormat found in modules jetified-barcodescanner-release-2.1.5-runtime.jar (:barcodescanner-release-2.1.5:) and jetified-barcodescanner-release-2.1.5-runtime.jar (barcodescanner-release-2.1.5.aar)
Yes, I tried the latest version too. Yes, I undestand it, but I just want to say that this plugin works fine with phonegap build with no errors. I also try cordova-plugin-barcodescanner for replacement, it successfully builds with this plugin, but cordova plugin have some problems, for example it rotates camera when scanning
The most popular barcode plugin seems to be phonegap-plugin-barcodescanner, even though it has been deprecated by its author. Last week, it had 13,192 downloads, which is fairly heavy for a plugin.
I also use it for projects I’ve done for customers. What problems do you have with it?
I write it in my topic qestion, I got error when I build:
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class barcodescanner.xservices.nl.barcodescanner.BuildConfig found in modules jetified-barcodescanner-release-2.1.5-runtime.jar (:barcodescanner-release-2.1.5:) and jetified-barcodescanner-release-2.1.5-runtime.jar (barcodescanner-release-2.1.5.aar)
Duplicate class com.google.zxing.BarcodeFormat found in modules jetified-barcodescanner-release-2.1.5-runtime.jar (:barcodescanner-release-2.1.5:) and jetified-barcodescanner-release-2.1.5-runtime.jar (barcodescanner-release-2.1.5.aar)
Duplicate class com.google.zxing.Binarizer found in modules jetified-barcodescanner-release-2.1.5-runtime.jar (:barcodescanner-release-2.1.5:) and jetified-barcodescanner-release-2.1.5-runtime.jar (barcodescanner-release-2.1.5.aar)
Duplicate class com.google.zxing.BinaryBitmap found in modules jetified-barcodescanner-release-2.1.5-runtime.jar (:barcodescanner-release-2.1.5:) and jetified-barcodescanner-release-2.1.5-runtime.jar (barcodescanner-release-2.1.5.aar)
Duplicate class com.google.zxing.ChecksumException found in modules jetified-barcodescanner-release-2.1.5-runtime.jar (:barcodescanner-release-2.1.5:) and jetified-barcodescanner-release-2.1.5-runtime.jar (barcodescanner-release-2.1.5.aar
......