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

后端 未结 21 1338
孤街浪徒
孤街浪徒 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:09

    You need to check that you have inserted v4 library and compile library? You must not repeat library in your app or your dependence program.

    delete the repeat library so that just one V4 remains.

    in your app dir build.gradle file add this command:

    android{
    
    
        configurations {
            all*.exclude group: 'com.android.support', module: 'support-v4'
            all*.exclude group: 'com.android.support', module: 'support-annotations'
        }
    
    }
    

    it works for me! You can try it!

提交回复
热议问题