Running error in Android Error:Execution failed for task ':app:transformClassesWithDexForDebug'solved

Running error in Android Error:Execution failed for task ':app:transformClassesWithDexForDebug'solved

original  October 27, 2017 10:11:21
  • 3020
错误如下:Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

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

 

Open the project directory, my app comes with android_support_v7.xml, indicating that it supports v7, which is the default, there must be

 


I configured android_support_v7 again in build.gradle (imported the v7 package repeatedly).

 

Solution:

Delete the v7 package in libs, clean it again, run it, and that's it~~

The problem is solved, and the conclusion is that there must be repeated references to library or jar packages.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326520654&siteId=291194637