Proguard Android使用Action Bar Sherlock [英] Proguard Android using Action Bar Sherlock

查看:359
本文介绍了Proguard Android使用Action Bar Sherlock的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



编辑4:
我试过取出Action Bar Sherlock和Proguard确实没问题。所以我想这是一个android-support-v4.jar的问题。



我在尝试这个包含ABS库,但它没有工作。 p>

  -keep class android.support.v4.app。** {*; } 
-keep interface android.support.v4.app。** {*; }
-keep class com.actionbarsherlock。** {*; }
-keep interface com.actionbarsherlock。** {*; }

-keepattributes *注释*

最后,奇怪的是我尝试没有 ABS库,没有proguard-android.txt ,它也工作。



我没有什么线索问题是。






我已经阅读了大量的Q / A,并尝试了许多解决方案,没有办法。



我尝试过:

 损伤libs / ** 

And:

  -libraryjars libs / ** 

我会使用4个外部jar:






  • apache-mime4j-0.6.jar

  • httpclient-4.2.2.jar

  • httpcore-4.2.2.jar

  • httpmime-4.2.2.jar



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

  [2013-10-15 18:36:12  -  ExampleProGuard] Proguard返回错误代码1.请参阅console 
[2013-10-15 18:36:12 - ExampleProGuard]注意:有364个重复的类定义。
[2013-10-15 18:36:12 - ExampleProGuard]警告:库类android.net.http.AndroidHttpClient扩展或实现程序类org.apache.http.client.HttpClient
[2013- 10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client.protocol.RequestAddCookies:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client.protocol.RequestAddCookies:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36 :12 - ExampleProGuard]警告:org.apache.http.client.protocol.RequestAuthCache:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client.protocol.RequestAuthCache:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client.protocol.RequestAuthenticationBase:找不到引用class org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client.protocol.RequestAuthenticationBase:找不到引用的类org。 apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client.protocol.RequestClientConnControl:找不到引用的类org.apache.commons .logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client.protocol.RequestClientConnControl:找不到引用的类org.apache.commons.logging。 LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client.protocol.ResponseAuthCache:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client.protocol.ResponseAuthCache:找不到引用的类org.apache.commons.logging.LogFactory
[ 2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http .client.protocol.ResponseProcessCookies:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.client。 protocol.ResponseProcessCookies:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.BasicScheme :找不到引用的类org.apache.commons.codec.binary.Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.BasicScheme:找不到引用的类org.apache.commons.codec.binary.Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:can找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用类org.apache.commons.codec.binary.Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apac he.http.impl.auth.GGSSchemeBase:找不到引用的类org.apache.commons.codec.binary.Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache .http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSManager
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl。 auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSName
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:can没有找到引用的类org.ietf.jgss.GSSManager
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.iet_jgss.GSSName
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss .GSSManager
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSContext
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSContext
[2013-10- 15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSContext
[2013-10-15 18:36: 12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSException
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSException
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache。 http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSException
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth .GGSSchemeBase:找不到引用的类org.apache.commons.codec.binary.Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth。 GGSS chemeBase:找不到引用的类org.apache.commons.codec.binary.Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase :找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:can' t找到引用的类org.ietf.jgss.GSSManager
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org .ietf.jgss.GSSName
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss。 GSSContext
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.apache.commons.codec.binary.Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSMana ger
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.Oid
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.Oid
[2013-10- 15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSManager
[2013-10-15 18:36: 12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSName
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSContext
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache。 http.impl.auth.GGSSchemeBase:找不到引用的类org.ietf.jgss.GSSException
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth KerberosScheme:找不到re ferenced类org.ietf.jgss.Oid
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.KerberosScheme:找不到引用的类org.ietf .jgss.Oid
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.KerberosScheme:找不到引用的类org.ietf.jgss.GSSException
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NTLMEngineImpl $ NTLMMessage:找不到引用的类org.apache.commons.codec.binary.Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NTLMEngineImpl $ NTLMMessage:找不到引用的类org.apache.commons.codec.binary。 Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NTLMEngineImpl $ NTLMMessage:找不到引用的类org.apache.commons.codec.binary .Base64
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NegotiateScheme:找不到引用的类org.apache.c ommons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NegotiateScheme:找不到引用的类org.ietf.jgss.Oid
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NegotiateScheme:找不到引用的类org.ietf.jgss.Oid
[ 2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NegotiateScheme:找不到引用的类org.ietf.jgss.GSSException
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NegotiateScheme:找不到引用的类org.ietf.jgss.GSSException
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NegotiateScheme:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.NegotiateScheme:找不到引用的类org.ietf.jgss.GSSException
[2013-10-15 18:36:12 - ExampleProGuard]警告:org .apache.http.impl.auth.NegotiateScheme:找不到引用的类org.ietf.jgss.Oid
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http。 impl.auth.SPNegoScheme:找不到引用的类org.ietf.jgss.Oid
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.SPNegoScheme :找不到引用的类org.ietf.jgss.Oid
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.auth.SPNegoScheme:找不到引用类org.ietf.jgss.GSSException
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.AbstractAuthenticationHandler:找不到引用的类org.apache .commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.AbstractAuthenticationHandler:找不到引用的类org.apache.commons。 logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.AbstractHttpClient:找不到引用类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.AbstractHttpClient:找不到引用的类org .apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.AuthenticationStrategyAdaptor:找不到引用的类org.apache。 commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.AuthenticationStrategyAdaptor:找不到引用的类org.apache.commons.logging .LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.AuthenticationStrategyImpl:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.AuthenticationStrategyImpl:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org .apache.http.impl.client.AutoRetryHttpClient:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache。 http.impl.client.AutoRetryHttpClient:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl .client.DefaultRedirectHandler:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client。 DefaultRedirectHandler:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.DefaultRedirectStrategy:可以没有找到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.DefaultRedirectStrategy:找不到引用类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.DefaultRequestDirector:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36 :12 - ExampleProGuard]警告:org.apache.http.impl.client.DefaultRequestDirector:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.HttpAuthenticator:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.client.HttpAuthenticator:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org。 apache.http.impl.conn.BasicClientConnectionManager:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http .impl.conn.BasicClientConnectionManager:找不到引用的类org.apache.co mmons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.DefaultClientConnection:找不到引用的类org.apache.commons.logging .LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.DefaultClientConnection:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.DefaultClientConnection:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.DefaultClientConnectionOperator:找不到引用的类org.apache.commons.logging.LogFactory
[2013- 10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.DefaultClientConnectionOperator:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.DefaultHttpRes ponseParser:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.DefaultHttpResponseParser:can没有找到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.DefaultResponseParser:找不到引用类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.DefaultResponseParser:找不到引用的类org .apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.IdleConnectionHandler:找不到引用的类org.apache。 commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.IdleConnectionHandler:找不到引用的类org.apache.commons.logging .LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.ap ache.http.impl.conn.InMemoryDnsResolver:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http .impl.conn.InMemoryDnsResolver:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl。 conn.PoolingClientConnectionManager:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.PoolingClientConnectionManager :找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.SingleClientConnManager:can' t找到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.SingleClientConnManager:找不到引用class org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.tsccm.AbstractConnPool:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18 :36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.tsccm.AbstractConnPool:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18: 36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.tsccm.ConnPoolByRoute:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36 :12 - ExampleProGuard]警告:org.apache.http.impl.conn.tsccm.ConnPoolByRoute:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36: 12 - ExampleProGuard]警告:org.apache.http.impl.conn.tsccm.RouteSpecificPool:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.tsccm.RouteSpecificPool:找不到引用的类org.apache.commons.log ging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:找不到引用的类org.apache.commons.logging .LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:找不到引用的类org.apache.commons.logging。 LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.codec.Base64InputStream:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.codec.Base64InputStream:找不到引用的类org.apache.commons.logging.LogFactory
[ 2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.codec.DecoderUtil:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-10 -15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.codec.DecoderUtil:找不到r引用类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.codec.QuotedPrintableInputStream:找不到引用的类org .apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.codec.QuotedPrintableInputStream:找不到引用的类org.apache。 commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.descriptor.DefaultBodyDescriptor:找不到引用的类org.apache.commons.logging .LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.descriptor.DefaultBodyDescriptor:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.field.AddressListField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:或g.apache.james.mime4j.field.AddressListField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache .james.mime4j.field.ContentDispositionField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james。 mime4j.field.ContentDispositionField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.field .ContentTypeField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.field.ContentTypeField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.field.DateTimeField:不能找到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.field.DateTimeField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.field.MailboxField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org .apache.james.mime4j.field.MailboxField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache。 james.mime4j.field.MailboxListField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j .field.MailboxListField:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.message。 BodyFactory:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18 :36:12 - ExampleProGuard]警告:org.apache.james.mime4j.message.BodyFactory:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36: 12 - ExampleProGuard]警告:org.apache.james.mime4j.parser.AbstractEntity:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard ]警告:org.apache.james.mime4j.parser.AbstractEntity:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告: org.apache.james.mime4j.storage.DefaultStorageProvider:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache .james.mime4j.storage.DefaultStorageProvider:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james。 mime4j.u​​til.CharsetUtil:找不到引用的类org.apache.commons.logging.LogFa ctory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.u​​til.CharsetUtil:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.u​​til.MimeUtil:找不到引用的类org.apache.commons.logging.LogFactory
[ 2013-10-15 18:36:12 - ExampleProGuard]警告:org.apache.james.mime4j.u​​til.MimeUtil:找不到引用的类org.apache.commons.logging.LogFactory
[2013-10-10 -15 18:36:12 - ExampleProGuard]您应该检查是否需要指定其他程序jar。
[2013-10-15 18:36:12 - ExampleProGuard]警告:有134个未解析的对类或接口的引用。
[2013-10-15 18:36:12 - ExampleProGuard]您可能需要指定其他库jar(使用-libraryjars)。
[2013-10-15 18:36:12 - ExampleProGuard]警告:根据程序类,有1个库类的实例。
[2013-10-15 18:36:12 - ExampleProGuard]你必须避免这样的依赖,因为程序类将
[2013-10-15 18:36:12 - ExampleProGuard]被处理,而图书馆课程将保持不变。
[2013-10-15 18:36:12 - ExampleProGuard] java.io.IOException:请先更正上述警告。
[2013-10-15 18:36:12 - ExampleProGuard]在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]在proguard.ProGuard.execute(ProGuard.java:86)
[2013- 10-15 18:36:12 - ExampleProGuard]在proguard.ProGuard.main(ProGuard.java:492)






EDIT



首先,感谢您的答案。

我试过:

  -dotwarn org.apache.common。** 

  -dontwarn org。** 

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



我看到这个线程,所以我尝试用路径添加一个新的类路径变量到sdk,但它显示相同的控制台错误。



这是m y project.properties文件,它也引用到Action Bar Sherlock

 #此文件由Android自动生成工具。 
#不要修改此文件 - 您的更改将被删除!

#必须在版本控制系统中检查此文件。

#要自定义Ant构建系统使用的属性,编辑
#ant.properties,并覆盖值以使脚本适应
#项目结构。

#要使ProGuard缩小并模糊代码,请取消注释此(可用属性:sdk.dir,user.home):
proguard.config = $ {sdk.dir} / tools / proguard / proguard-android.txt:proguard-project.txt

#项目目标。
target = android-15
android.library = false
android.library.reference.1 = .. / JakeWharton-ActionBarSherlock-5b15c92 / actionbarsherlock

编辑2:



正如关于Action Sherlock酒吧网站我也尝试了这一切,而不改变所有错误控制台:

  -keep class android.support.v4.app。** {*; } 
-keep interface android.support.v4.app。** {*; }
-keep class com.actionbarsherlock。** {*; }
-keep interface com.actionbarsherlock。** {*; }

-keepattributes *注释*

编辑3: / strong>



我尝试从项目中取出外部jar(而不是ABS是库),但它仍然显示完全相同的错误。我没有得到它来自哪里。

解决方案

我在这里,我也把它放在这里,以便它可以帮助某人。



我有同样的问题,并在某处找到解决这个问题的解决方法,它是禁用minifyEnabled,生成已签名的APK。

  buildTypes {
release {
minifyEnabled false
shrinkResources true
proguardFiles'proguard-project.txt'
}

在将buildTool更新到23.0之前,我从未面临此问题。



此外,使用此新版本,您需要将其添加到Progaurd.txt文件中。

  --keep公共类com.google.android.gms。* {public *; } 
-dontwarn com.google.android.gms。**

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



EDIT 4: I've tried taking out Action Bar Sherlock and Proguard did it ok. So I guess it is a problem with android-support-v4.jar.

I tried this when including the ABS library, but it didn't work..

-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }

-keepattributes *Annotation*

Finally, What is weird is that I tried without the ABS library and without proguard-android.txt and it worked as well.

I have no clue of what the problem is.


I've read tons of Q/A about this and tried many solutions but none worked out.

I've tried doing:

-injars libs/**

And:

-libraryjars  libs/**

And other things that didn't work..Could you give me your opinion on what I should do?

I am using 4 external jars:

  • apache-mime4j-0.6.jar
  • httpclient-4.2.2.jar
  • httpcore-4.2.2.jar
  • httpmime-4.2.2.jar

This is error console when I tried to export the signed 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)


EDIT

First, thank you Eric for your answer.

I tried:

 -dotwarn org.apache.common.**

and

 -dontwarn org.**

But it shows the exact same console errors.

I saw this thread so I tried adding a new classpath variable with the path to sdk but it shows the same console errors.

This is my project.properties file where it refers too to the 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-15
android.library=false
android.library.reference.1=../JakeWharton-ActionBarSherlock-5b15c92/actionbarsherlock

EDIT 2:

As it says on Action Sherlock Bar website I tried this too without changing at all the error console:

-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }

-keepattributes *Annotation*

EDIT 3:

I tried taking off the external jars (not ABS which is a library) from the project but it still shows the exact same error. I dont get where it is coming from.

解决方案

I have answered this before here, I am putting it here too so that it may help someone.

I had the same issue and read somewhere a workaround to this issue and it was to disable minifyEnabled, generate signed APK.

buildTypes {
    release {
        minifyEnabled false
        shrinkResources true
        proguardFiles 'proguard-project.txt'
    }

I never face this issue before updating buildTool to 23.0.

Also, with this newer version, you need to add this to your Progaurd.txt file.

-keep public class com.google.android.gms.* { public *; }
-dontwarn com.google.android.gms.**

Hope this helps to resolve your issue too.

这篇关于Proguard Android使用Action Bar Sherlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆