2013-05-01 11 views
10

Ich baue eine App-Engine verbunden Android-Projekt mit der Eclipse-Plugin. Das Projekt funktioniert gut und ich entscheide, dass es Zeit ist, eine Release-APK zu erstellen. Mit Eclipse gehe ich durch den Prozess. Aber wenn ich das Ende erreicht habe, bekomme ich eine Ausnahme: Proguard returned with error code 1. Ich schließe das gesamte Protokoll unten ein.Proguard Ausnahme beim Erstellen von Release Android apk

Mein GEP generiertes Projekt wird mit zwei Proguard bezogenen Dateien geliefert: proguard-google-api-client.txt und proguard-project.txt. Es gibt auch ein Projekt namens proguard, aber es ist leer. Die project.properties Datei hat zwei Linien in ihrem

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

Will jemand bitte helfen. Abgesehen von diesen Bugs funktioniert mein Code einwandfrei. Ich teste in Emulatoren und realen Geräten. Das hat nie ein Problem in der Entwicklung angehalten. Auch mein Backend ist bereits auf der App Engine installiert und ich habe keine Probleme damit, es mit meiner Entwickler-API zu verwenden.

Nach einigem Lesen bin ich auf How can I check/upgrade Proguard version whn using it in Eclipse for Android development? gelandet. Aber nachdem ich manuell proguard von 4.7 zu 4.9 aktualisiert habe, wenn ich versuche, eine apk zu exportieren, bekomme ich den Eklipsefehler, dass es die Datei android-sdk-macosx/tools/proguard/proguard-android.txt nicht finden kann.

EDIT: Basierend auf dem Feedback erhalte ich, habe ich die folgende Datei proguard-mine.txt

-injars  bin/classes 
-injars  libs 
-outjars  bin/classes-processed.jar 
-libraryjars /projects/tools/android-sdk-macosx/platforms/android-8/android.jar 

-dontpreverify 
-repackageclasses '' 
-allowaccessmodification 
-optimizations !code/simplification/arithmetic 
-keepattributes *Annotation* 

-keep public class * extends android.app.Activity 
-keep public class * extends android.app.Application 
-keep public class * extends android.app.Service 
-keep public class * extends android.content.BroadcastReceiver 
-keep public class * extends android.content.ContentProvider 

-keep public class * extends android.view.View { 
    public <init>(android.content.Context); 
    public <init>(android.content.Context, android.util.AttributeSet); 
    public <init>(android.content.Context, android.util.AttributeSet, int); 
    public void set*(...); 
} 

-keepclasseswithmembers class * { 
    public <init>(android.content.Context, android.util.AttributeSet); 
} 

-keepclasseswithmembers class * { 
    public <init>(android.content.Context, android.util.AttributeSet, int); 
} 

-keepclassmembers class * extends android.content.Context { 
    public void *(android.view.View); 
    public void *(android.view.MenuItem); 
} 

-keepclassmembers class * implements android.os.Parcelable { 
    static android.os.Parcelable$Creator CREATOR; 
} 

-keepclassmembers class **.R$* { 
    public static <fields>; 
} 

# -dontwarn android.support.** 

# -dontwarn com.google.android.gms.** 

# -dontwarn com.google.common.cache.** 

# -dontwarn com.google.common.primitives.** 

# -dontwarn org.apache.commons.logging.impl.AvalonLogger.** 

# -dontwarn org.apache.commons.logging.impl.Log4JLogger.** 

# -dontwarn org.apache.commons.logging.impl.LogKitLogger.** 

# -dontwarn org.apache.commons.logging.impl.ServletContextCleaner.** 

# -dontwarn org.apache.http.impl.auth.GGSSchemeBase.** 

# -dontwarn org.apache.http.impl.auth.KerberosScheme.** 

# -dontwarn org.apache.http.impl.auth.NegotiateScheme.** 

# -dontwarn org.apache.http.impl.auth.SPNegoScheme.** 

# -dontwarn org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage.** 

# -dontwarn org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage.** 

Und dann bearbeitet project.properties als

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

Aber nach dem Lauf, ich immer noch die Fehler genannt. Kann mir bitte jemand einen Hinweis geben, was meine Datei fehlt? Ich bekomme die Fehler, wenn ich die # auch entferne.

ERROR LOG:

[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

Nach ein wenig mehr lesen, habe ich ersetzt mit 'proguard.config = proguard.cfg' aber dann sagt Eclipse, dass es' proguard.cfg' in meinem Projektverzeichnis nicht finden kann, was natürlich nicht da ist. Soll ich einen manuell erstellen? –

+1

natürlich sollten Sie es manuell erstellen. Sehen Sie sich [this] [1] proguard file example auf Sektor 7 an. [1]: http://proguard.sourceforge.net/manual/examples.html#androidapplication – yugidroid

+0

@yugidroid Danke für den Link, Siehe meine Bearbeitung oben als Antwort auf das, was ich dort finde. –

Antwort

1

Ich habe meine proguard-project.txt

erstellt
# 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 *; 
#} 

überprüfen Name der Bibliothek mit all

bearbeiten project.properties

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

Mai dieser Eine hilfreich für Sie.

Danke.

+3

Die Android Ant/Eclipse/Gradle-Build-Prozesse bieten bereits automatisch die richtigen Optionen -injars und -libraryjars. Sie * müssen * sie nicht erneut bereitstellen oder Sie werden viele Warnungen über doppelte Klassen sehen. –

+0

bevor es zur Verfügung gestellt wurde, bekam ich eine Warnung, danach nicht. –

Verwandte Themen