`

Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [activ

 
阅读更多
inActivity] Proguard returned with error code 1. See console
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Note: there were 703 duplicate class definitions.
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [activation.jar:META-INF/MANIFEST.MF])
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [additionnal.jar:META-INF/MANIFEST.MF])
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [commons-email-1.2.jar:META-INF/MANIFEST.MF])
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [annotations.jar:META-INF/MANIFEST.MF])
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [commons-email-1.2.jar:META-INF/MANIFEST.MF])
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Warning: can't write resource [META-INF/LICENSE.txt] (Duplicate zip entry [commons-email-1.2.jar:META-INF/LICENSE.txt])
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Warning: can't write resource [META-INF/NOTICE.txt] (Duplicate zip entry [commons-email-1.2.jar:META-INF/NOTICE.txt])
[2013-02-26 14:43:30 - com.example.defender.MainActivity] java.io.IOException: Can't write [C:\Users\pkuyjxu\AppData\Local\Temp\android_3098360301032524933.jar] (Can't read [C:\Users\pkuyjxu\Desktop\Defender\libs\commons-email-1.2.jar] (Duplicate zip entry [b/a/a/a/a.class == commons-email-1.2.jar:org/apache/commons/mail/DefaultAuthenticator.class]))
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.OutputWriter.writeOutput(OutputWriter.java:264)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.OutputWriter.execute(OutputWriter.java:160)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.ProGuard.writeOutput(ProGuard.java:372)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.ProGuard.execute(ProGuard.java:153)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.ProGuard.main(ProGuard.java:492)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Caused by: java.io.IOException: Can't read [C:\Users\pkuyjxu\Desktop\Defender\libs\commons-email-1.2.jar] (Duplicate zip entry [b/a/a/a/a.class == commons-email-1.2.jar:org/apache/commons/mail/DefaultAuthenticator.class])
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.InputReader.readInput(InputReader.java:230)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.InputReader.readInput(InputReader.java:200)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.OutputWriter.writeOutput(OutputWriter.java:253)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	... 4 more
[2013-02-26 14:43:30 - com.example.defender.MainActivity] Caused by: java.io.IOException: Duplicate zip entry [b/a/a/a/a.class == commons-email-1.2.jar:org/apache/commons/mail/DefaultAuthenticator.class]
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.io.JarWriter.getOutputStream(JarWriter.java:139)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:105)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:92)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.io.ClassRewriter.read(ClassRewriter.java:68)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.io.JarReader.read(JarReader.java:65)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	at proguard.InputReader.readInput(InputReader.java:226)
[2013-02-26 14:43:30 - com.example.defender.MainActivity] 	... 6 more

 solution:

change  the following code

 

-injars libs/mail.jar 
-injars libs/activation.jar 
-injars libs/additionnal.jar
-injars libs/commons-email-1.2.jar

-libraryjars libs/additionnal.jar
-libraryjars libs/commons-email-1.2.jar
-libraryjars libs/mail.jar
-libraryjars libs/activation.jar

 

to

 

#-injars libs/mail.jar 
#-injars libs/activation.jar 
#-injars libs/additionnal.jar
#-injars libs/commons-email-1.2.jar

-libraryjars libs/additionnal.jar
-libraryjars libs/commons-email-1.2.jar
-libraryjars libs/mail.jar
-libraryjars libs/activation.jar

 

 

 

 转载自:

http://blog.csdn.net/pkuyjxu/article/details/8613709#comments

 

分享到:
评论

相关推荐

    bea_wls_internal.war

    此包是本人在修补weblogic漏洞时,http://sn.cloud.ccb.com/bea_wls_internal/classes/META-INF/MANIFEST.MF漏洞实在没办法,试遍网上所有方法,在被逼无奈之下,花了两周研究出来的,就不要想在其他地方找到了,...

    ASPADS.IN_, ASPNETOC.DL_,ASPPERF.DL_,ASP.DL_,ASP.MF_,ASP.MO_

    ASPADS.IN_, ASPNETOC.DL_,ASPPERF.DL_,ASP.DL_,ASP.MF_,ASP.MO_

    commonj系列包

    META-INF/MANIFEST.MF commonj.timers.CancelTimerListener.java commonj/timers/package.html commonj.timers.StopTimerListener.java commonj.timers.Timer.java commonj.timers.TimerListener.java commonj....

    MANIFEST.MF

    MANIFEST.MF

    bea_tuxedo_quick_start

    供初学者学习的一本书,教初学者如何快速入门的一本好书。

    polkit-0.112-26.el7_9.1.x86_64.rpm离线升级包下载(Polkit漏洞CentOS7修复升级包)

    CentOS 7.X版本专用 升级命令: rpm -Uvh polkit-0.112-26.el7_9.1.x86_64.rpm 参考链接: https://ubuntu.com/security/CVE-2021-4034 https://access.redhat.com/security/cve/CVE-2021-4034 ...

    slf4j-api-1.6.2.jar

    META-INF/MANIFEST.MF META-INF/maven/org.slf4j/slf4j-api/pom.properties META-INF/maven/org.slf4j/slf4j-api/pom.xml org.slf4j.ILoggerFactory.class org.slf4j.IMarkerFactory.class org.slf4j.Logger.class ...

    mybatis-ehcache-1.0.2.jar

    META-INF/MANIFEST.MF META-INF/NOTICE META-INF/maven/org.mybatis.caches/mybatis-ehcache/pom.properties META-INF/maven/org.mybatis.caches/mybatis-ehcache/pom.xml org.mybatis.caches.ehcache.EhcacheCache....

    Eclipse中web-inf和meta-inf文件夹的信息

    META-INF 存在程序入口相关信息, 每个jar 都会有这个文件夹,里面的 MANIFEST文件 记录这些信息WEB-INF 使用web 项目才会有这个文件夹,普通的 j2se项目

    WLS_Filter

    Edge-Preserving Decompositions for Multi-Scale Tone and Detail Manipulation,wls filter,WLS filter code

    aliyuncs.zip

    阿里云视频点播转码SDK,文档地址https://helpcdn.aliyun.com/product/29932.html?spm=a2c4g.11186623.6.540.57403893NeEgPt

    Inf_integration.rar

    你还在为统计N个同学和同事的分散表格信息而不停的复制粘贴吗?这个程序帮你一键搞定。把表头发给大家,大家提交一个表格给你,以后还可以自己添加检查功能。

    woodstox-core-asl-4.1.2_1.jar

    META-INF/MANIFEST.MF META-INF/NOTICE META-INF/services/javax.xml.stream.XMLEventFactory META-INF/services/javax.xml.stream.XMLInputFactory META-INF/services/javax.xml.stream.XMLOutputFactory META-INF/...

    jodconverter-3.0-beta-2.jar

    META-INF/MANIFEST.MF META-INF/maven/net.sf.jodconverter/jodconverter/pom.properties META-INF/maven/net.sf.jodconverter/jodconverter/pom.xml document-formats.js ...

    typed-manifest:对标准 Java META-INFMANIFEST.MF 的类型安全访问

    提供对类路径上META-INF/MANIFEST.MF轻松访问。 用法 请参阅samples模块。 背景故事 我正在构建一个可执行的 uberjar 并正确填充META-INF/MANIFEST.MF的Implementation-Version 。 我希望清单成为该信息的唯一真实...

    perl-ExtUtils-Manifest-1.61-244.el7.noarch.rpm

    离线安装包,亲测可用

    BEA_WebLogic平台下J2EE调优攻略

    BEA WebLogic平台下J2EE调优攻略

    apt-mirror-api-0.1.jar

    Files contained in apt-mirror-api-0.1.jar:...META-INF/MANIFEST.MF META-INF/maven/com.moparisthebest.aptIn16/apt-mirror-api/pom.properties META-INF/maven/com.moparisthebest.aptIn16/apt-mirror-api/pom.xml ...

    dingtalk-2.1.3-latest-x86-64.rpm

    dingtalk-2.1.3-latest-x86_64.rpm

Global site tag (gtag.js) - Google Analytics