Android Proguard warning: can't write resource (Duplicate zip entry)

前端 未结 3 1913
余生分开走
余生分开走 2021-02-12 16:24

I enabled proguard and got:

Warning:can\'t write resource [META-INF/LICENSE.txt] (Duplicate zip entry [commons-io-2.4.jar:META-INF/LICENSE.txt])
Warning:can\'t w         


        
3条回答
  •  时光取名叫无心
    2021-02-12 16:59

    Adding option -ignorewarnings in the proguard config file worked for me. It still gives warning for 'META-INF/LICENSE.txt' but build does not fail. But use this option only if you are sure about what are its effects. Follow http://proguard.sourceforge.net/manual/usage.html#ignorewarnings for more info.

提交回复
热议问题