Ionic cordova执行失败的任务':transformClassesWithDexForDebug'

时间:2017-06-19 17:09:25

标签: android cordova ionic-framework ionic2 ionic3

我正在尝试构建我的离子应用并收到以下错误。

Error: /Applications/MAMP/htdocs/ionic/newBuild/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 Landroid/support/v4/app/NavUtils$NavUtilsImpl;

有谁知道如何解决?

1 个答案:

答案 0 :(得分:0)

我发现问题是我删除了这个文件查看器插件以及此插件所依赖的support-v4.jar,现在已修复。