Execution failed for task ‘:transformClassesWithDexForDebug’ Barcode Scanner Ionic 3

What went wrong: Execution failed for task
‘:transformClassesWithDexForDebug’.
com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.dex.DexException:
Multiple dex files define Lcom/google/zxing/BarcodeFormat; (Android)
What device vendor

Device – Google Pixel

Cordova CLI version and cordova platform version

cordova –version – 7.0.1 cordova platforms – Installed platforms:
android 6.2.3 ios 4.3.1

Plugin version

cordova plugin version | grep phonegap-plugin-barcodescanner
phonegap-plugin-barcodescanner 6.0.8 “BarcodeScanner”

Execution failed for task ‘:transformClassesWithDexForDebug’ Barcode Scanner Ionic 3