2013-05-01 12 views
10

बनाते समय प्रोगार्ड अपवाद मैं ग्रहण प्लगइन का उपयोग कर एंड्रॉइड प्रोजेक्ट से जुड़े एक ऐप इंजन का निर्माण कर रहा हूं। यह परियोजना ठीक काम कर रही है और इसलिए मुझे लगता है कि रिलीज एपीके बनाने का समय है। ग्रहण का उपयोग करके, मैं प्रक्रिया के माध्यम से जाता हूं। लेकिन जब मैं अंत तक पहुंचा, तो मुझे अपवाद मिला: Proguard returned with error code 1। मैं नीचे पूरा लॉग शामिल हैं।रिलीज एंड्रॉइड एपीके

मेरा जीईपी जेनरेट प्रोजेक्ट दो प्रोजेवार्ड संबंधित फाइलों के साथ आता है: proguard-google-api-client.txt और proguard-project.txt। प्रोजेवार्ड नामक एक परियोजना भी है लेकिन यह खाली है। project.properties फ़ाइल में

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

कोई व्यक्ति कृपया मदद करेगा। इन प्रगति त्रुटियों के अलावा मेरा कोड ठीक काम कर रहा है। मैं अनुकरणकों और वास्तविक उपकरणों में परीक्षण करता हूं। इसने कभी विकास में कोई समस्या नहीं रोका। इसके अलावा मेरा बैकएंड पहले ही ऐप इंजन पर तैनात है और मुझे अपने देव एपीआई के साथ इसका उपयोग करने में कोई परेशानी नहीं है।

कुछ पढ़ने के बाद, मैं How can I check/upgrade Proguard version whn using it in Eclipse for Android development? पर उतर गया। लेकिन जब मैं एपीके निर्यात करने का प्रयास करता हूं तो मैन्युअल रूप से प्रोग्रार्ड को 4.7 से 4.9 तक अपडेट करता हूं, मुझे ग्रहण त्रुटि मिलती है कि उसे फ़ाइल android-sdk-macosx/tools/proguard/proguard-android.txt नहीं मिल सकती है।

संपादित करें: मैं प्राप्त प्रतिक्रिया के आधार पर मैं 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' के साथ प्रतिस्थापित किया लेकिन फिर ग्रहण कहता है कि यह मेरी प्रोजेक्ट निर्देशिका में 'proguard.cfg' नहीं ढूंढ सकता है, बेशक यह वहां नहीं है। क्या मुझे मैन्युअल रूप से एक बनाना है? –

+1

बेशक आपको इसे मैन्युअल रूप से बनाना चाहिए। सेक्टर 7 पर [इस] [1] प्रोजेवार्ड फ़ाइल उदाहरण पर एक नज़र डालें। [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

एंड्रॉइड एंट/एक्लिप्स/ग्रैडल बिल्ड प्रक्रियाएं पहले ही स्वचालित रूप से उचित-एजार और लाइब्रेजर विकल्प प्रदान करती हैं। आपको * उन्हें फिर से प्रदान नहीं करना चाहिए, या आप डुप्लिकेट कक्षाओं के बारे में कई चेतावनियां देखेंगे। –

+0

प्रदान करने से पहले, मुझे चेतावनी मिली, उसके बाद नहीं। –

संबंधित मुद्दे