BarcodeScanner & Facebook4 Plugins Not Compatible?


Hey All. Im in Cordova hell. More than a week and Ive made literally no progress.

When using the BarcodeScanner ionic native plugin and Facebook4 plugins separately they work fine. However together they wont build for Android (they build fine for iOS however android throws error)

Error:Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’. Unable to merge dex).

Apparently the facebook plugin includes the facebook sdk which includes a library that is used by many other Android SDK’s. Issue about this on github; However ive tried everything off here.

Anyone have these two plugins working together?

If so could you post what versions your running aswell as your ionic info?

Thanks and much love to anyone who can help.


I am facing the same issue with those two plugins. Getting build error with latest cordova-plugin-facebook4 plugin.

I found a workaround – I have successfully build with cordova-plugin-facebook4@1.7.4