当我想要签署(导入)我的项目时,我得到了如下的proguard错误代码1:
[2016-06-14 21:26:30 - myapp] Proguard returned with error code 1. See console[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw$zza: can't find superclass or interface org.apache.http.clIEnt.methods.httpentityEnclosingRequestBase[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzac: can't find referenced class androID.net.http.androidhttpclient[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzac: can't find referenced class androID.net.http.androidhttpclient[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.header[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.header[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.httpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.Statusline[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.impl.cookie.DateUtils[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.impl.cookie.DateUtils[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.header[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.header[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.httpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.httpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.httpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.Statusline[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.Statusline[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.Statusline[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.httpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.header[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzt: can't find referenced class org.apache.http.header[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.httpClIEnt[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpDelete[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpentityEnclosingRequestBase[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpGet[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httphead[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpOptions[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpPost[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpPut[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpTrace[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpUriRequest[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.entity.ByteArrayEntity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced method 'voID addheader(java.lang.String,java.lang.String)' in class com.Google.androID.gms.internal.zzw$zza[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpDelete[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpentityEnclosingRequestBase[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpGet[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httphead[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpOptions[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpPost[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpPost[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpPost[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpPut[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpPut[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpTrace[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.entity.ByteArrayEntity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.httpClIEnt[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpUriRequest[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpUriRequest[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.httpClIEnt[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.httpClIEnt[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpUriRequest[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpUriRequest[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpUriRequest[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpUriRequest[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpentityEnclosingRequestBase[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpentityEnclosingRequestBase[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw: can't find referenced class org.apache.http.clIEnt.methods.httpUriRequest[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw$zza: can't find referenced class org.apache.http.clIEnt.methods.httpentityEnclosingRequestBase[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw$zza: can't find referenced method 'voID setURI(java.net.URI)' in class com.Google.androID.gms.internal.zzw$zza[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzw$zza: can't find referenced class org.apache.http.clIEnt.methods.httpentityEnclosingRequestBase[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzx: can't find referenced class org.apache.http.impl.cookie.DateParseException[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzx: can't find referenced class org.apache.http.impl.cookie.DateUtils[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzx: can't find referenced class org.apache.http.impl.cookie.DateUtils[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzy: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzy: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.ProtocolVersion[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.entity.Basichttpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.message.Basicheader[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.message.BasichttpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicStatusline[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.ProtocolVersion[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.entity.Basichttpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.entity.Basichttpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.entity.Basichttpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.entity.Basichttpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.entity.Basichttpentity[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.message.Basicheader[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.message.BasichttpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.message.BasichttpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.message.BasichttpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.message.BasicStatusline[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.httpResponse[2016-06-14 21:26:30 - myapp] Warning: com.Google.androID.gms.internal.zzz: can't find referenced class org.apache.http.httpentity[2016-06-14 21:26:30 - myapp] You should check if you need to specify additional program jars.[2016-06-14 21:26:30 - myapp] Warning: there were 87 unresolved references to classes or interfaces.[2016-06-14 21:26:30 - myapp] You may need to specify additional library jars (using '-libraryjars').[2016-06-14 21:26:30 - myapp] Warning: there were 2 unresolved references to program class members.[2016-06-14 21:26:30 - myapp] Your input classes appear to be inconsistent.[2016-06-14 21:26:30 - myapp] You may need to recompile them and try again.[2016-06-14 21:26:30 - myapp] Alternatively, you may have to specify the option[2016-06-14 21:26:30 - myapp] '-dontskipnonpubliclibraryclassmembers'.[2016-06-14 21:26:30 - myapp] java.io.IOException: Please correct the above warnings first.[2016-06-14 21:26:30 - myapp] at proguard.Initializer.execute(Initializer.java:321)[2016-06-14 21:26:30 - myapp] at proguard.ProGuard.initialize(ProGuard.java:211)[2016-06-14 21:26:30 - myapp] at proguard.ProGuard.execute(ProGuard.java:86)[2016-06-14 21:26:30 - myapp] at proguard.ProGuard.main(ProGuard.java:492)
所以这是我的整页
proguard-project.txt
# This is a configuration file for ProGuard.# http://proguard.sourceforge.net/index.HTML#manual/usage.HTML-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-verbose# Optimization is turned off by default. Dex does not like code run# through the ProGuard optimize and preverify steps (and performs some# of these optimizations on its own).#-dontoptimize#-dontpreverify# If you want to enable optimization, you should include the# following:-optimizations !code/simplification/arithmetic,!code/simplification/cast,!fIEld/*,!class/merging/*-optimizationpasses 5-allowaccessmodification## Note that you cannot just include these flags in your own# configuration file; if you are including this file, optimization# will be turned off. You'll need to either edit this file, or# duplicate the contents of this file and remove the include of this# file from your project's proguard.config path property.-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.app.backup.BackupAgent-keep public class * extends androID.preference.Preference-keep public class * extends androID.support.v4.app.Fragment-keep public class * extends androID.support.v4.app.DialogFragment-keep public class * extends com.actionbarsherlock.app.SherlockListFragment-keep public class * extends com.actionbarsherlock.app.SherlockFragment-keep public class * extends com.actionbarsherlock.app.SherlockFragmentActivity-keep public class * extends androID.app.Fragment-keep public class com.androID.vending.licensing.IlicensingService# For native methods, see http://proguard.sourceforge.net/manual/examples.HTML#native-keepclasseswithmembernames class * { native <methods>;}-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.app.Activity { public voID *(androID.vIEw.VIEw);}# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.HTML#enumerations-keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String);}-keep class * implements androID.os.Parcelable { public static final androID.os.Parcelable$Creator *;}-keepclassmembers class **.R$* { public static <fIElds>;}-keep class androID.support.v4.app.** { *; }-keep interface androID.support.v4.app.** { *; }-keep class com.actionbarsherlock.** { *; }-keep interface com.actionbarsherlock.** { *; }# The support library contains references to newer platform versions.# Don't warn about those in case this app is linking against an older# platform version. We kNow about them, and they are safe.-dontwarn androID.support.**-dontwarn com.Google.ads.**
我该如何解决?有什么我想念的吗?
解决方法:
Try to prevent play services to obfuscate form proguard.
-keep class com.Google.androID.gms.** { *; }-dontwarn com.Google.androID.gms.**
总结 以上是内存溢出为你收集整理的java-Proguard返回,错误代码为1(com.google.android.gms)全部内容,希望文章能够帮你解决java-Proguard返回,错误代码为1(com.google.android.gms)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)