简体   繁体   English

> java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex

[英]> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

Hello to everyone and thanks in advance,although this question might be repeated but It is been more than 5 hours that I am not able to solve this problem, everything was working smoothly and fine , i din't face any bug or error before, I just don't know where this error came from ?? 大家好,谢谢,尽管这个问题可能会重复,但是超过5个小时我还是无法解决这个问题,一切工作都很好,我以前没有遇到任何错误或错误,我只是不知道此错误来自何处? I closed the project when it was working fine, after opening it again , saw this error. 当项目运行正常时,我关闭了该项目,再次打开该项目后,看到了此错误。 执行失败

I have searched a lot of websites to find the solution but tried everything,none of them worked for me, this problem has come out of no where. 我搜索了很多网站以找到解决方案,但是尝试了所有方法,但没有一个对我有用,这个问题无处不在。 Please help me. 请帮我。

Here is my build.gradle(Module:app) code. 这是我的build.gradle(Module:app)代码。 在此处输入图片说明

在此处输入图片说明

and here is the build.gradle(project level) of my project. 这是我的项目的build.gradle(项目级别)。 在此处输入图片说明

as I mentioned,this code was perfectly working and even that time i uploaded the project copy to Google-Drive, after importing that too i face this issue. 正如我提到的那样,此代码非常有效,即使在导入后,我也将项目副本上传到Google-Drive,但我也遇到了这个问题。

After 2 days of struggling, I have finally solved this problem. 经过2天的奋斗,我终于解决了这个问题。

The problem mainly shows that the External libraries are mixed for this reason it might create bug and unsuccessful build. 该问题主要表明,由于这个原因, 外部库是混合的 ,因此可能会导致错误和构建失败。 For more details, please check my answer in: 有关更多详细信息,请检查我的回答:
Android Studio 3.0 Execution failed for task: unable to merge dex Android Studio 3.0执行任务失败:无法合并dex

I don't wanna delete the question because the solution which has worked for me may not work for some others, but trying every solution is a better way to understand the problems. 我不想删除这个问题,因为对我有用的解决方案可能不适用于其他解决方案,但是尝试每种解决方案都是理解问题的更好方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并 dex - Error:java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex 错误:java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex - Error:java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex com.android.builder.dexing.DexArchiveMergerException的RunTimeException: - RunTimeException for com.android.builder.dexing.DexArchiveMergerException: com.android.builder.dexing.DexArchiveMergerException:无法合并dex 5 - com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex 5 android-java.lang.RuntimeException - android - java.lang.RuntimeException java.lang.RuntimeException android - java.lang.RuntimeException android Android java.lang.RuntimeException - Android java.lang.RuntimeException java.lang.RuntimeException:没有创建dex文件 - java.lang.RuntimeException: No dex files created at java.lang.RuntimeException: 无法实例化应用程序 Multi dex Application - java.lang.RuntimeException: Unable to instantiate application Multi dex Application java.lang.RuntimeException:无法实例化活动 - java.lang.RuntimeException: Unable to instantiate activity
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM