Another project was introduced into the current project in Android Studio today, and a Java.util.zip.ZipException:duplicate entry error occurred while compiling.
Errors such as the following are seen:
Failure:build failed with a exception.* what went wrong:execution failed for task ': Watch:packagealldebugclassesformulti Dex ' .> java.util.zip.ZipException:duplicate entry:com/nostra13/universalimageloader/cache/disc/ diskcache.class* try:run with--STACKTRACE option to get the stack trace. Run with--info or--debug option to get more log output.
cause of error:
The problem is that the Diskcache.class file is repeated, and then the same jar package including the diskcache.class file is introduced in the project that is now introduced by the search hair and under the Libs folder in the current project.
Workaround:
removed the The jar package is repeated under the Libs folder in the current project , preserving the jar package in the project that was introduced. the compilation will not be an error.
====================================================================================
Ouyangpeng welcome reprint, sharing with people is the source of progress!
Reprint please keep the original address : Http://blog.csdn.net/ouyang_peng
====================================================================================
My Android Step-by-step tour------> Android compilation error Java.util.zip.ZipException:duplicate entry workaround