Proguard warnings “can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry)”

后端 未结 5 1307
一整个雨季
一整个雨季 2020-11-30 02:52

I\'m using IntelliJ and running Proguard in debug mode but I can\'t seem to get rid of warnings such as:

ProGuard: [         


        
5条回答
  •  感动是毒
    2020-11-30 03:46

    The best solution I found was to copy the -obfuscate target from /tools/ant/build.xml into your project's custom_rules.xml. Then the only block that needs to be changed is:

    
        
             
             
        
    
    

    The only added bit is (!META-INF/MANIFEST.MF). This will exclude all the manifest files, which won't be copied in to the final APK anyway.

提交回复
热议问题