本文介绍了无法合并 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 执行失败ebug’.java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: 无法合并 dex

What went wrong:Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

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

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

https://help.gradle.org

在 7 秒内构建失败

离子信息:

cli 包:(C:UsersITSERVAppDataRoamingpmode_modules)

cli packages: (C:UsersITSERVAppDataRoamingpmode_modules)

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

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

cordova (Cordova CLI):8.0.0本地包:

cordova (Cordova CLI) : 8.0.0local packages:

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

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

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

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

提前致谢!

推荐答案

我通过简单地运行这个命令然后构建项目解决了这个问题.不要进入复杂的答案,比如升级 Gradle 或谷歌包等.

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 05:38
查看更多