Proguard Android使用Action Bar Sherlock

Proguard Android使用Action Bar Sherlock,第1张

概述编辑4: 我试过拿出Action Bar Sherlock,Proguard也没关系.所以我猜这是 android-support-v4.jar的一个问题. 我在尝试包含ABS库时尝试了这个,但它没有用. -keep class android.support.v4.app.** { *; }-keep interface android.support.v4.app.** { *; }-ke 编辑4:
我试过拿出Action bar Sherlock,Proguard也没关系.所以我猜这是 android-support-v4.jar的一个问题.

我在尝试包含ABS库时尝试了这个,但它没有用.

-keep class androID.support.v4.app.** { *; }-keep interface androID.support.v4.app.** { *; }-keep class com.actionbarsherlock.** { *; }-keep interface com.actionbarsherlock.** { *; }-keepattributes *Annotation*

最后,奇怪的是,我尝试没有ABS库,没有proguard-androID.txt,它也运行良好.

我不知道问题是什么.

我已经阅读了大量有关此问题的Q / A并尝试了许多解决方案,但都没有解决.

我试过做:

-injars libs/**

和:

-libraryjars  libs/**

还有其他不起作用的东西.你能告诉我你应该怎么做的意见吗?

我正在使用4个外部罐子:

> apache-mime4j-0.6.jar
> httpclIEnt-4.2.2.jar
> httpcore-4.2.2.jar
> httpmime-4.2.2.jar

当我尝试导出签名的apk时,这是错误控制台:

[2013-10-15 18:36:12 - ExampleProGuard] Proguard returned with error code 1. See console[2013-10-15 18:36:12 - ExampleProGuard] Note: there were 364 duplicate class deFinitions.[2013-10-15 18:36:12 - ExampleProGuard] Warning: library class androID.net.http.androidhttpclient extends or implements program class org.apache.http.clIEnt.httpClIEnt[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.RequestAddcookies: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.RequestAddcookies: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.RequestAuthCache: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.RequestAuthCache: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.RequestAuthenticationBase: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.RequestAuthenticationBase: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.RequestClIEntConnControl: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.RequestClIEntConnControl: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.ResponseAuthCache: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.ResponseAuthCache: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.ResponseProcesscookies: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.clIEnt.protocol.ResponseProcesscookies: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.BasicScheme: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.BasicScheme: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSManager[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSname[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSManager[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSname[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSManager[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSContext[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSContext[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSContext[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSException[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSException[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSException[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSManager[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSname[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSContext[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSManager[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.OID[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.OID[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSManager[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSname[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSContext[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.IEtf.jgss.GSSException[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.KerberosScheme: can't find referenced class org.IEtf.jgss.OID[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.KerberosScheme: can't find referenced class org.IEtf.jgss.OID[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.KerberosScheme: can't find referenced class org.IEtf.jgss.GSSException[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NTLMEngineImpl$NTLMMessage: can't find referenced class org.apache.commons.codec.binary.Base64[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.IEtf.jgss.OID[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.IEtf.jgss.OID[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.IEtf.jgss.GSSException[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.IEtf.jgss.GSSException[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.IEtf.jgss.GSSException[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.IEtf.jgss.OID[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.SPNegoScheme: can't find referenced class org.IEtf.jgss.OID[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.SPNegoScheme: can't find referenced class org.IEtf.jgss.OID[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.auth.SPNegoScheme: can't find referenced class org.IEtf.jgss.GSSException[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.AbstractAuthenticationHandler: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.AbstractAuthenticationHandler: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.AbstracthttpClIEnt: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.AbstracthttpClIEnt: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.AuthenticationStrategyAdaptor: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.AuthenticationStrategyAdaptor: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.AuthenticationStrategyImpl: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.AuthenticationStrategyImpl: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.autoRetryhttpClIEnt: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.autoRetryhttpClIEnt: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.DefaultRedirectHandler: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.DefaultRedirectHandler: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.DefaultRedirectStrategy: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.DefaultRedirectStrategy: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.DefaultRequestDirector: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.DefaultRequestDirector: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.httpAuthenticator: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.clIEnt.httpAuthenticator: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.BasicclIEntConnectionManager: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.BasicclIEntConnectionManager: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.DefaultClIEntConnection: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.DefaultClIEntConnection: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.DefaultClIEntConnection: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.DefaultClIEntConnectionoperator: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.DefaultClIEntConnectionoperator: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.DefaulthttpResponseParser: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.DefaulthttpResponseParser: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.DefaultResponseParser: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.DefaultResponseParser: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.IDleConnectionHandler: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.IDleConnectionHandler: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.InMemoryDnsResolver: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.InMemoryDnsResolver: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.PoolingClIEntConnectionManager: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.PoolingClIEntConnectionManager: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.SingleClIEntConnManager: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.SingleClIEntConnManager: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.tsccm.AbstractConnPool: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.tsccm.AbstractConnPool: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.tsccm.ConnPoolByRoute: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.tsccm.ConnPoolByRoute: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.tsccm.RouteSpecificPool: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.tsccm.RouteSpecificPool: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.tsccm.ThreadSafeClIEntConnManager: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.http.impl.conn.tsccm.ThreadSafeClIEntConnManager: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.codec.Base64inputStream: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.codec.Base64inputStream: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.codec.DecoderUtil: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.codec.DecoderUtil: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.codec.QuotedPrintableinputStream: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.codec.QuotedPrintableinputStream: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.descriptor.DefaultbodyDescriptor: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.descriptor.DefaultbodyDescriptor: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.AddressListFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.AddressListFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.ContentdispositionFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.ContentdispositionFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.ContentTypeFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.ContentTypeFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.DateTimeFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.DateTimeFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.MailBoxFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.MailBoxFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.MailBoxListFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.fIEld.MailBoxListFIEld: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.message.BodyFactory: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.message.BodyFactory: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.parser.AbstractEntity: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.parser.AbstractEntity: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.storage.DefaultStorageProvIDer: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.storage.DefaultStorageProvIDer: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.util.CharsetUtil: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.util.CharsetUtil: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.util.MimeUtil: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard] Warning: org.apache.james.mime4j.util.MimeUtil: can't find referenced class org.apache.commons.logging.LogFactory[2013-10-15 18:36:12 - ExampleProGuard]       You should check if you need to specify additional program jars.[2013-10-15 18:36:12 - ExampleProGuard] Warning: there were 134 unresolved references to classes or interfaces.[2013-10-15 18:36:12 - ExampleProGuard]          You may need to specify additional library jars (using '-libraryjars').[2013-10-15 18:36:12 - ExampleProGuard] Warning: there were 1 instances of library classes depending on program classes.[2013-10-15 18:36:12 - ExampleProGuard]          You must avoID such dependencIEs,since the program classes will[2013-10-15 18:36:12 - ExampleProGuard]          be processed,while the library classes will remain unchanged.[2013-10-15 18:36:12 - ExampleProGuard] java.io.IOException: Please correct the above warnings first.[2013-10-15 18:36:12 - ExampleProGuard]     at proguard.Initializer.execute(Initializer.java:321)[2013-10-15 18:36:12 - ExampleProGuard]     at proguard.ProGuard.initialize(ProGuard.java:211)[2013-10-15 18:36:12 - ExampleProGuard]     at proguard.ProGuard.execute(ProGuard.java:86)[2013-10-15 18:36:12 - ExampleProGuard]     at proguard.ProGuard.main(ProGuard.java:492)

编辑

首先,谢谢Eric的回答.

我试过了:

-dotwarn org.apache.common.**

-dontwarn org.**

但它显示完全相同的控制台错误.

我看到这个thread,所以我尝试添加一个新的classpath变量和sdk的路径,但它显示了相同的控制台错误.

这是我的project.propertIEs文件,它也引用了Action bar Sherlock

# This file is automatically generated by AndroID Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must be checked in Version Control Systems.## To customize propertIEs used by the Ant build system edit# "ant.propertIEs",and overrIDe values to adapt the script to your# project structure.## To enable ProGuard to shrink and obfuscate your code,uncomment this (available propertIEs: sdk.dir,user.home):proguard.config=${sdk.dir}/tools/proguard/proguard-androID.txt:proguard-project.txt# Project target.target=androID-15androID.library=falseandroID.library.reference.1=../JakeWharton-ActionbarSherlock-5b15c92/actionbarsherlock

编辑2:

正如它在Action Sherlock bar website上所说的那样我也尝试了这一点而不改变所有的错误控制台:

-keep class androID.support.v4.app.** { *; }-keep interface androID.support.v4.app.** { *; }-keep class com.actionbarsherlock.** { *; }-keep interface com.actionbarsherlock.** { *; }-keepattributes *Annotation*

编辑3:

我尝试从项目中取出外部罐子(不是ABS,这是一个库),但它仍然显示完全相同的错误.我不知道它来自哪里.

解决方法 我在 here之前已经回答了这个问题,我也把它放在这里以便它可以帮助某人.

我遇到了同样的问题并在某个地方阅读了解决此问题的方法,它是禁用MinifyEnabled,生成签名的APK.

buildTypes {    release {        MinifyEnabled false        shrinkResources true        proguardfiles 'proguard-project.txt'    }

在将buildTool更新到23.0之前,我从未遇到过这个问题.

此外,对于这个较新的版本,您需要将其添加到Progaurd.txt文件中.

-keep public class com.Google.androID.gms.* { public *; }-dontwarn com.Google.androID.gms.**

希望这也有助于解决您的问题.

总结

以上是内存溢出为你收集整理的Proguard Android使用Action Bar Sherlock全部内容,希望文章能够帮你解决Proguard Android使用Action Bar Sherlock所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1122125.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存