执行任务失败 [英] Execution failed for task
问题描述
对于任务':app:transformDexArchiveWithExternalLibsDexMergerForDebug',执行执行失败.,同时将任何依赖项添加到当前项目中.
Getting Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. while adding any dependency to my current project.
检查了SO的解决方案,但在我的情况下不起作用.
Checked on SO for the solution but that didn't work in my case.
请提出针对此错误的可能解决方案. TIA
Please suggest the possible solution for this error. TIA
推荐答案
没有任何效果.最终卸载了Android Studio,然后重新安装成功了.
Nothing worked. Finally uninstalled the Android Studio and re-installation worked.
在我的情况下,卸载/重新安装是可行的,但是您应该首先尝试其他解决方案,如果没有帮助,那么您应该按照此步骤进行,因为这很费时.
Uninstall/Reinstall worked in my case but you should try other solution first and if nothing helps you, then you should follow this as it is time taking task.
更新:
经过长时间的研究,通过从gradle中删除不必要的依赖关系,解决了该问题.
After a long research just resolved this issue by removing the unnecessary dependencies from gradle.
尝试一下,让我知道.
这篇关于执行任务失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!