after ionic3 installs the barcodeScanner plug-in, package
Execution failed for task": app:transformDexWithDexForRelease".
:
npm
text version reports error:
:app:transformDexWithDexForRelease
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ":app:transformDexWithDexForRelease".
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/app/FragmentTransitionCompat21$1;
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
38 actionable tasks: 1 executed, 37 up-to-date
(node:10316) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ":app:transformDexWithDexForRelease".
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files def
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
the environment used is
package.json :
"phonegap-plugin-barcodescanner": "^7.1.2",
ionic: 3.20.0
gradle: 4.2