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

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




你可能感兴趣的:(Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [activation.jar:META-INF/M)