java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex

后端 未结 21 1663
孤街浪徒
孤街浪徒 2020-11-22 07:37

I am not sure what this error means.

Execution failed for task \':excelSior:packageAllDebugClassesForMultiDex\'.
> java.util.zip.ZipException: duplicate          


        
21条回答
  •  日久生厌
    2020-11-22 08:28

    This is because you have added a library and given its dependency on a module more than once.

    In my case, I had added a library as a module and as a gradle dependency both.

    Removing one source of adding library (I removed gradle dependency) solved my problem.

提交回复
热议问题