导出Android App时出现Proguard错误

时间:2015-05-14 14:24:17

标签: java android proguard

我正在尝试在启用Proguard的情况下导出我的应用程序,但导出时会出现以下错误:

[2015-05-14 11:03:08 - MonitorMaster] Proguard returned with error code 1. See console
[2015-05-14 11:03:08 - MonitorMaster] Warning: org.apache.harmony.awt.datatransfer.DataProxy: can't find superclass or interface java.awt.datatransfer.Transferable
[2015-05-14 11:03:08 - MonitorMaster] Warning: org.apache.harmony.awt.datatransfer.NativeClipboard: can't find superclass or interface java.awt.datatransfer.Clipboard
[2015-05-14 11:03:08 - MonitorMaster] Warning: com.sun.mail.imap.protocol.IMAPSaslAuthenticator: can't find referenced class javax.security.sasl.Sasl
[2015-05-14 11:03:08 - MonitorMaster] Warning: javax.activation.CommandInfo: can't find referenced class java.beans.Beans
[2015-05-14 11:03:08 - MonitorMaster] Warning: org.apache.harmony.awt.ContextStorage: can't find referenced class java.awt.Toolkit
[2015-05-14 11:03:08 - MonitorMaster] Warning: org.apache.harmony.awt.datatransfer.DataSource: can't find referenced class java.awt.datatransfer.Transferable
[2015-05-14 11:03:08 - MonitorMaster] Warning: org.apache.harmony.awt.datatransfer.DataSource: can't find referenced class java.awt.Image
[2015-05-14 11:03:08 - MonitorMaster] Warning: org.apache.harmony.awt.datatransfer.TextFlavor: can't find referenced class java.awt.datatransfer.SystemFlavorMap
[2015-05-14 11:03:08 - MonitorMaster]       You should check if you need to specify additional program jars.
[2015-05-14 11:03:08 - MonitorMaster] Warning: there were 247 unresolved references to classes or interfaces.
[2015-05-14 11:03:08 - MonitorMaster]          You may need to specify additional library jars (using '-libraryjars').
[2015-05-14 11:03:08 - MonitorMaster] java.io.IOException: Please correct the above warnings first.
[2015-05-14 11:03:08 - MonitorMaster]   at proguard.Initializer.execute(Initializer.java:321)
[2015-05-14 11:03:08 - MonitorMaster]   at proguard.ProGuard.initialize(ProGuard.java:211)
[2015-05-14 11:03:08 - MonitorMaster]   at proguard.ProGuard.execute(ProGuard.java:86)
[2015-05-14 11:03:08 - MonitorMaster]   at proguard.ProGuard.main(ProGuard.java:492)

我将此代码添加到mu proguard.cfg,但没有用

-dontwarn org.apache.**

0 个答案:

没有答案