EddyVerbruggen / nativescript-barcodescanner

🔎 NativeScript QR / barcode (bulk)scanner plugin
MIT License
294 stars 73 forks source link

conflicting with nativescript-zxing #108

Open davidjonz2005 opened 7 years ago

davidjonz2005 commented 7 years ago

hello @EddyVerbruggen i wanted to use this library as a barcode scanner and using nativescript-zxing plugin as a barcode creator but i got error of conflicting as below

:compileF0F1F2F3DebugNdk UP-TO-DATE
:compileF0F1F2F3DebugSources
:buildMetadata
Exception in thread "main" java.lang.IllegalArgumentException: Class com.google.zxing.pdf417.PDF417ResultMetadata conflict: D:\dev\nativescript\
Salesman\platforms\android\build\intermediates\exploded-aar\barcodescanner-release-2.1.6\jars\classes.jar and C:\Users\A\.gradle\caches\modules-
2\files-2.1\com.google.zxing\core\3.2.1\2287494d4f5f9f3a9a2bb6980e3f32053721b315\core-3.2.1.jar
        at com.telerik.metadata.ClassRepo.addToCache(ClassRepo.java:21)
        at com.telerik.metadata.Builder.build(Builder.java:38)
        at com.telerik.metadata.Generator.main(Generator.java:44)
:buildMetadata FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildMetadata'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_131\bin\java.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 59.494 secs
Unable to apply changes on device: 192.168.56.101:5555. Error is: Command gradlew.bat failed with exit code 1.
Executing after-watch hook from D:\dev\nativescript\Salesman\hooks\after-watch\nativescript-dev-typescript.js

i have done tns remove android and add several time but the problem exists. how can i solve this?

ineiti commented 5 years ago

As this is still one of the top-replies from google when searching for the conflict, here is a nice way that worked for me:

https://github.com/NathanaelA/nativescript-zxing/issues/4

@Cselt reply was the easiest.