2013-05-01 1 views
10

Eclipse 플러그인을 사용하여 Android 엔진에 연결된 앱 엔진을 구축하고 있습니다. 프로젝트가 정상적으로 작동하므로 출시 APK를 작성할 때가되었습니다. 이클립스를 사용하여 프로세스를 진행합니다. 그러나 끝에 도달하면 예외가 발생합니다 : Proguard returned with error code 1. 아래에 전체 로그를 포함합니다.릴리스를 만드는 동안 Proguard 예외가 있습니다. android apk

내 GEP 생성 프로젝트에는 프로 우드 관련 파일 두 개 (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 오류 이외에 내 코드가 잘 작동합니다. 에뮬레이터 및 실제 장치에서 테스트합니다. 결코 개발 문제를 일시 중지하지 않았습니다. 또한 내 백엔드는 이미 앱 엔진에 배포되어 있으며 내 dev API와 함께 사용하는 데 문제가 없습니다.

약간의 읽기 후에, 나는 How can I check/upgrade Proguard version whn using it in Eclipse for Android development?에 착륙했습니다. 하지만 수동으로 proguard를 4.7에서 4.9로 업데이트 한 후 apk를 내보내려고하면 파일을 찾을 수 없다는 일식 오류가 발생합니다. android-sdk-macosx/tools/proguard/proguard-android.txt.

편집 : 의견을 바탕으로 I 수신, 나는 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.** 

라는 다음 파일을 생성 그리고

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

project.properties을 편집하지만 실행 후, 난 여전히 오류를 얻을. 누군가 내 파일이 누락 된 것에 대한 힌트를 주시겠습니까? #도 제거하면 오류가 발생합니다.

오류 로그 :

[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'를 찾을 수 없다고 말합니다. 물론 거기에는 존재하지 않습니다. 수동으로 생성해야합니까? –

+1

물론 수동으로 만들어야합니다. [this] [1] 섹터 7의 프로 가드 파일 예제를보십시오. [1] : http://proguard.sourceforge.net/manual/examples.html#androidapplication – yugidroid

+0

@yugidroid 링크를 제공해 주셔서 감사합니다. 위의 편집을 참조하십시오. 내가 찾은 것에 대한 응답으로 –

답변

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 옵션을 제공합니다. 다시 제공해서는 안되며 중복 수업에 관한 많은 경고를 보게됩니다. 그것이 제공되기 전에 –

+0

, 나는 그 후, 경고를 얻었다. –

관련 문제