-
Notifications
You must be signed in to change notification settings - Fork 509
Facebook Android SDK import ZXing, breaks cordova build when combined with phonegap-plugin-barcodescanner #550
Comments
See fix (at least for now): phonegap/phonegap-plugin-barcodescanner#535 (comment) |
we are using phonegap build site to create build Here is our config
and we use below plugins
We get this type error from phonegap build url FAILURE: Build failed with an exception.
So any one please help me to resolve this issue ? |
Hello I am using ionic and integré facebook and barcodescanner and I have the reported error. I have not been able to solve the problem in any way. Please help |
publishNonDefault is deprecated and has no effect anymore. All variants are now published. Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead. :CordovaLib:compileDebugAidl UP-TO-DATE UP-TO-DATE UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets :app:transformClassesWithDesugarForDebug UP-TO-DATE FAILED FAILURE: Build failed with an exception.
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
BUILD FAILED in 2s
BUILD FAILED in 2s |
{ |
help please ... Has anyone been able to solve this problem? |
Fixed by changing .xml:
solutions on: 535 |
With pull request #646 you can set the SDK version without changing the XML. Ex: |
@kumarom1203 sorry my bad. That command will not work until they accept the pull request (if they will).
If you still have the issue after adding the plugin, please try to remove the re-add the platform |
@skaman I'll accept the PR soon |
PR #646 merged. Android guide updated. For support questions use Stackoverflow, Ionic forum or other channels |
@skaman PR has been published to npm too |
Same issue, even in 2019 :|
Any solution please ? -- UPDATE -- I had to use the plugin: https://github.com/AndreiTelteu/cordova-plugin-facebook4-no-zxing and it worked. @peterpeterparker , can you add any additional |
The latest version of the Facebook Android SDK (4.26.0) includes the ZXing barcode scanner library as a dependency. When I try to build a project on Android that includes both cordova-plugin-facebook4 and phonegap-plugin-barcodescanner, I get a multiple Dex error:
I'm not an expert on Gradle builds but maybe it's possible to add a line that forces the zxing library to be imported only if it's not already imported elsewhere, so that we don't end up with two copies of the library?
The text was updated successfully, but these errors were encountered: