无法合并dex Ionic 3 [英] Unable to merge dex Ionic 3

查看:85
本文介绍了无法合并dex Ionic 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上次我成功构建,但是在添加了无法构建的页面数之后,我确实搜索了很多错误,但对我来说却无济于事.例如,添加并删除了平台离子科尔多瓦清洁离子科尔多瓦构建等……

Last time I build successfully but after adding the number of pages I am unable to build, I did search for that error a lot but nothing works for me.For example, added and removed the platform, ionic cordova clean , ionic cordova build etc…

运行时遇到以下错误- ionic cordova build android

Following Error facing by running-- ionic cordova build android

出了什么问题: 任务<:app:transformDexArchiveWithExternalLibsDexMergerForD的执行失败 调试". java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.de xing.DexArchiveMergerException:无法合并dex

What went wrong: Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForD ebug’. java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.de xing.DexArchiveMergerException: Unable to merge dex

尝试: 使用--stacktrace选项运行以获取堆栈跟踪.使用--info或--debug运行 选项以获取更多日志输出.

Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

https://help.gradle.org

在7秒内失败

IOnic信息:

cli软件包:(C:\ Users \ ITSERV \ AppData \ Roaming \ npm \ node_modules)

cli packages: (C:\Users\ITSERV\AppData\Roaming\npm\node_modules)

@ ionic/cli-utils:1.19.2 离子(离子CLI):3.20.0 全局软件包:

@ionic/cli-utils : 1.19.2 ionic (Ionic CLI) : 3.20.0 global packages:

cordova(Cordova CLI):8.0.0 本地软件包:

cordova (Cordova CLI) : 8.0.0 local packages:

@ ionic/app-scripts:3.1.8 Cordova平台:Android 7.0.0 离子框架:离子角3.9.2 系统:

@ionic/app-scripts : 3.1.8 Cordova Platforms : android 7.0.0 Ionic Framework : ionic-angular 3.9.2 System:

节点:v6.11.2 npm:3.10.10 操作系统:Windows 7

Node : v6.11.2 npm : 3.10.10 OS : Windows 7

谢谢!

推荐答案

我通过简单地运行此命令并构建项目来解决了这个问题.不要进入复杂的答案,例如升级Gradle或google软件包等.

I solved this issue by running simply this command and then build the project. don't go into complicated answers like upgrading Gradle or google packages etc..

 cordova clean android 
 ionic cordova build android 

这篇关于无法合并dex Ionic 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆