首页 > 解决方案 > 多个dex文件定义Lcom/google/android/gms/internal/zzew

问题描述

这发生在我在我的应用程序上安装 OneSignal 插件后构建失败:transformClassesWithDexForDebug

:transformClassesWithDexForDebug
 FAILED

FAILURE: Build failed with an exception.

* 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/android/gms/internal/zzew;

* 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: 37.944 secs
(node:9664) UnhandledPromiseRejectionWarning: Error: /home/hamdanihamza/Documents/ionic/Wydad/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* 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/android/gms/internal/zzew;

标签: ionic3

解决方案


推荐阅读