2013-05-01 62 views
10

我正在建设一个应用程序引擎连接使用eclipse插件的android项目。该项目工作正常,所以我决定是时候创建一个释放APK。使用Eclipse,我会经历这个过程。但是当我到达最后时,我会遇到一个例外:Proguard returned with error code 1。我包括下面的整个日志。Proguard异常,同时创造发布android apk

我的GEP生成的项目带有两个与proguard相关的文件:proguard-google-api-client.txtproguard-project.txt。还有一个名为proguard的项目,但它是空的。 project.properties文件中有两行

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt:proguard-google-api-client.txt 
target=android-17 

请问有人请帮忙。除了这些proguard错误,我的代码工作正常。我在模拟器和真实设备上进行测试。这永远不会暂停开发中的问题。另外,我的后端已经部署在应用引擎上,并且使用它与我的开发API无关。

经过一番阅读,我登陆How can I check/upgrade Proguard version whn using it in Eclipse for Android development?。但是当我手动更新从4.7到4.9的proguard后,当我尝试导出一个apk时,我得到了eclipse错误,它找不到文件android-sdk-macosx/tools/proguard/proguard-android.txt

编辑:意见的基础上,我收到,我创建了一个名为proguard-mine.txt

​​

下列文件,然后编辑project.properties作为

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt:proguard-google-api-client.txt:proguard-mine.txt 

但是运行之后,我仍然得到错误。有人请给我一个关于我的文件丢失的提示吗?如果我删除了#,我也会收到错误信息。

错误日志:

[2013-05-01 14:22:25 - FriendsGame] Proguard returned with error code 1. See console 
[2013-05-01 14:22:25 - FriendsGame] Note: there were 365 duplicate class definitions. 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find superclass or interface javax.servlet.ServletContextListener 
[2013-05-01 14:22:25 - FriendsGame] Warning: library class android.net.http.AndroidHttpClient extends or implements program class org.apache.http.client.HttpClient 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string 
… 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.common.SignInButton: can't find referenced class com.google.android.gms.R 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.common.SignInButton: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.common.SignInButton: can't find referenced class com.google.android.gms.R$string 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.maps.GoogleMapOptions: can't find referenced class com.google.android.gms.R 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.maps.GoogleMapOptions: can't find referenced class com.google.android.gms.R$styleable 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.maps.GoogleMapOptions: can't find referenced class com.google.android.gms.R$styleable 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.maps.model.CameraPosition: can't find referenced class com.google.android.gms.R 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.maps.model.CameraPosition: can't find referenced class com.google.android.gms.R$styleable 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.android.gms.maps.model.CameraPosition: can't find referenced class com.google.android.gms.R$styleable 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.common.cache.Striped64: can't find referenced class sun.misc.Unsafe 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.common.cache.Striped64$1: can't find referenced class sun.misc.Unsafe 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.common.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator: can't find referenced class sun.misc.Unsafe 
[2013-05-01 14:22:25 - FriendsGame] Warning: com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1: can't find referenced class sun.misc.Unsafe 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.AvalonLogger: can't find referenced class org.apache.avalon.framework.logger.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Priority 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Priority 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Priority 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Priority 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Category 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Priority 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.Log4JLogger: can't find referenced class org.apache.log4j.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Hierarchy 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Hierarchy 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Hierarchy 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextListener 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextEvent 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextEvent 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextEvent 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.commons.logging.impl.ServletContextCleaner: can't find referenced class javax.servlet.ServletContextEvent 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSManager 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSName 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSManager 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSName 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSManager 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSContext 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSContext 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSContext 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSManager 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSName 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSContext 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSManager 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.Oid 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.Oid 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSManager 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSName 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSContext 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.GGSSchemeBase: can't find referenced class org.ietf.jgss.GSSException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.KerberosScheme: can't find referenced class org.ietf.jgss.Oid 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.KerberosScheme: can't find referenced class org.ietf.jgss.Oid 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.KerberosScheme: can't find referenced class org.ietf.jgss.GSSException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.ietf.jgss.Oid 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.ietf.jgss.Oid 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.ietf.jgss.GSSException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.ietf.jgss.GSSException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.ietf.jgss.GSSException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.NegotiateScheme: can't find referenced class org.ietf.jgss.Oid 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.SPNegoScheme: can't find referenced class org.ietf.jgss.Oid 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.SPNegoScheme: can't find referenced class org.ietf.jgss.Oid 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.auth.SPNegoScheme: can't find referenced class org.ietf.jgss.GSSException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Element 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Element 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Ehcache 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Ehcache 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Element 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Ehcache 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Ehcache 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Ehcache 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Element 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Element 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage: can't find referenced class net.sf.ehcache.Element 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClient 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClient 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClientIF 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.OperationTimeoutException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClientIF 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClientIF 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClientIF 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.CASValue 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.CASValue 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClientIF 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.CASResponse 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClientIF 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.CASValue 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.CASResponse 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClientIF 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClientIF 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.MemcachedClientIF 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.OperationTimeoutException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.OperationTimeoutException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.OperationTimeoutException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.CASResponse 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.CASValue 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.OperationTimeoutException 
[2013-05-01 14:22:25 - FriendsGame] Warning: org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage: can't find referenced class net.spy.memcached.CASValue 
[2013-05-01 14:22:25 - FriendsGame]  You should check if you need to specify additional program jars. 
[2013-05-01 14:22:25 - FriendsGame] Warning: there were 199 unresolved references to classes or interfaces. 
[2013-05-01 14:22:25 - FriendsGame]   You may need to specify additional library jars (using '-libraryjars'). 
[2013-05-01 14:22:25 - FriendsGame] Warning: there were 1 instances of library classes depending on program classes. 
[2013-05-01 14:22:25 - FriendsGame]   You must avoid such dependencies, since the program classes will 
[2013-05-01 14:22:25 - FriendsGame]   be processed, while the library classes will remain unchanged. 
[2013-05-01 14:22:25 - FriendsGame] java.io.IOException: Please correct the above warnings first. 
[2013-05-01 14:22:25 - FriendsGame]  at proguard.Initializer.execute(Initializer.java:321) 
[2013-05-01 14:22:25 - FriendsGame]  at proguard.ProGuard.initialize(ProGuard.java:211) 
[2013-05-01 14:22:25 - FriendsGame]  at proguard.ProGuard.execute(ProGuard.java:86) 
[2013-05-01 14:22:25 - FriendsGame]  at proguard.ProGuard.main(ProGuard.java:492) 
+0

经过一些更多的阅读,我用'proguard.config = proguard.cfg'替代,但是然后eclipse说它找不到'proguard.cfg'在我的项目目录中,当然它不在那里。我应该手动创建一个吗? – 2013-05-01 22:57:50

+1

当然你应该手动创建它。看看[7] proguard文件中的扇区7示例。[1]:http://proguard.sourceforge.net/manual/examples.html#androidapplication – yugidroid 2013-05-02 01:15:06

+0

@yugidroid感谢您的链接,请参阅上面的我的编辑回应我在那里找到的东西。 – 2013-05-02 02:16:41

回答

1

我创建了我proguard-project.txt

# To enable ProGuard in your project, edit project.properties 
# to define the proguard.config property as described in that file. 
# 
# Add project specific ProGuard rules here. 
# By default, the flags in this file are appended to flags specified 
# in ${sdk.dir}/tools/proguard/proguard-android.txt 
# You can edit the include path and order by changing the ProGuard 
# include property in project.properties. 
# 
# For more details, see 
# http://developer.android.com/guide/developing/tools/proguard.html 

-libraryjars /libs/google-api-client-1.10.3-beta.jar 
-libraryjars /libs/google-api-client-android2-1.10.3-beta.jar 
-libraryjars /libs/google-http-client-1.10.3-beta.jar 
-libraryjars /libs/google-http-client-android2-1.10.3-beta.jar 
-libraryjars /libs/google-oauth-client-1.10.1-beta.jar 
-libraryjars /libs/gson-2.1.jar 
-libraryjars /libs/guava-11.0.1.jar 
-libraryjars /libs/jackson-core-asl-1.9.4.jar 
-libraryjars /libs/jsr305-1.3.9.jar 
-libraryjars /libs/protobuf-java-2.2.0.jar 
-libraryjars /libs/maps.jar 

# Add any project specific keep options here: 

-keep class com.google.** 
-dontwarn com.google.** 

# If your project uses WebView with JS, uncomment the following 
# and specify the fully qualified class name to the JavaScript interface 
# class: 
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { 
# public *; 
#} 

检查库名与这一切

编辑project.properties

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 

愿这一个对你有帮助。

谢谢。

+3

Android Ant/Eclipse/Gradle构建过程已经自动提供了正确的-injars和-libraryjars选项。你*不能*再次提供,否则你会看到很多关于重复类的警告。 – 2013-08-03 09:47:33

+0

提供之前,我得到了警告,之后没有。 – 2013-08-03 10:44:58

相关问题