如何在没有收到警告的情况下获得发布?

时间:2017-05-29 13:58:16

标签: android compiler-errors compiler-warnings

编译我的应用时遇到问题。问题是我遇到了这些问题,我不知道如何解决它。谢谢大家。

我该如何解决? 如何在我的代码中没有出现问题的情况下在proguard中设置这些警告? 或者如何编译而不会混淆这些警告?

以下代码是我的消息中显示的警告:

class android.net.http.AndroidHttpClientConnection extends or implements program class org.apache.http.HttpInetConnection
    Warning:library class android.net.http.AndroidHttpClientConnection extends or implements program class org.apache.http.HttpConnection
    Warning:library class com.android.internal.http.multipart.MultipartEntity extends or implements program class org.apache.http.entity.AbstractHttpEntity
    Warning:library class org.apache.http.auth.AuthenticationException extends or implements program class org.apache.http.ProtocolException
    Warning:library class org.apache.http.auth.MalformedChallengeException extends or implements program class org.apache.http.ProtocolException
    Warning:library class org.apache.http.auth.params.AuthParamBean extends or implements program class org.apache.http.params.HttpAbstractParamBean
    Warning:library class org.apache.http.client.NonRepeatableRequestException extends or implements program class org.apache.http.ProtocolException
    Warning:library class org.apache.http.client.RedirectException extends or implements program class org.apache.http.ProtocolException
    Warning:library class org.apache.http.client.entity.UrlEncodedFormEntity extends or implements program class org.apache.http.entity.StringEntity
    Warning:library class org.apache.http.client.methods.HttpEntityEnclosingRequestBase extends or implements program class org.apache.http.HttpEntityEnclosingRequest
    Warning:library class org.apache.http.client.methods.HttpRequestBase extends or implements program class org.apache.http.message.AbstractHttpMessage
    Warning:library class org.apache.http.client.methods.HttpUriRequest extends or implements program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.client.params.AllClientPNames extends or implements program class org.apache.http.params.CoreConnectionPNames
    Warning:library class org.apache.http.client.params.AllClientPNames extends or implements program class org.apache.http.params.CoreProtocolPNames
    Warning:library class org.apache.http.client.params.ClientParamBean extends or implements program class org.apache.http.params.HttpAbstractParamBean
    Warning:library class org.apache.http.client.protocol.RequestAddCookies extends or implements program class org.apache.http.HttpRequestInterceptor
    Warning:library class org.apache.http.client.protocol.RequestDefaultHeaders extends or implements program class org.apache.http.HttpRequestInterceptor
    Warning:library class org.apache.http.client.protocol.RequestProxyAuthentication extends or implements program class org.apache.http.HttpRequestInterceptor
    Warning:library class org.apache.http.client.protocol.RequestTargetAuthentication extends or implements program class org.apache.http.HttpRequestInterceptor
    Warning:library class org.apache.http.client.protocol.ResponseProcessCookies extends or implements program class org.apache.http.HttpResponseInterceptor
    Warning:library class org.apache.http.conn.BasicManagedEntity extends or implements program class org.apache.http.entity.HttpEntityWrapper
    Warning:library class org.apache.http.conn.ManagedClientConnection extends or implements program class org.apache.http.HttpClientConnection
    Warning:library class org.apache.http.conn.ManagedClientConnection extends or implements program class org.apache.http.HttpInetConnection
    Warning:library class org.apache.http.conn.OperatedClientConnection extends or implements program class org.apache.http.HttpClientConnection
    Warning:library class org.apache.http.conn.OperatedClientConnection extends or implements program class org.apache.http.HttpInetConnection
    Warning:library class org.apache.http.conn.params.ConnConnectionParamBean extends or implements program class org.apache.http.params.HttpAbstractParamBean
    Warning:library class org.apache.http.conn.params.ConnManagerParamBean extends or implements program class org.apache.http.params.HttpAbstractParamBean
    Warning:library class org.apache.http.conn.params.ConnRouteParamBean extends or implements program class org.apache.http.params.HttpAbstractParamBean
    Warning:library class org.apache.http.cookie.MalformedCookieException extends or implements program class org.apache.http.ProtocolException
    Warning:library class org.apache.http.cookie.params.CookieSpecParamBean extends or implements program class org.apache.http.params.HttpAbstractParamBean
    Warning:library class org.apache.http.impl.client.ClientParamsStack extends or implements program class org.apache.http.params.AbstractHttpParams
    Warning:library class org.apache.http.impl.client.EntityEnclosingRequestWrapper extends or implements program class org.apache.http.HttpEntityEnclosingRequest
    Warning:library class org.apache.http.impl.client.RequestWrapper extends or implements program class org.apache.http.message.AbstractHttpMessage
    Warning:library class org.apache.http.impl.client.TunnelRefusedException extends or implements program class org.apache.http.HttpException
    Warning:library class org.apache.http.impl.conn.DefaultClientConnection extends or implements program class org.apache.http.impl.SocketHttpClientConnection
    Warning:library class org.apache.http.impl.conn.DefaultResponseParser extends or implements program class org.apache.http.impl.io.AbstractMessageParser
    Warning:library class org.apache.http.impl.conn.LoggingSessionInputBuffer extends or implements program class org.apache.http.io.SessionInputBuffer
    Warning:library class org.apache.http.impl.conn.LoggingSessionOutputBuffer extends or implements program class org.apache.http.io.SessionOutputBuffer
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkUrlFactory
    Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
    Warning:za.co.riggaroo.materialhelptutorial.MaterialTutorialFragment: can't find referenced method 'com.bumptech.glide.DrawableTypeRequest load(java.lang.Integer)' in program class com.bumptech.glide.RequestManager
    Warning:za.co.riggaroo.materialhelptutorial.MaterialTutorialFragment: can't find referenced class com.bumptech.glide.DrawableTypeRequest
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpEntity
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.params.HttpParams
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpHost
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpHost
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpHost
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpHost
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class android.net.http.AndroidHttpClient depends on program class org.apache.http.entity.AbstractHttpEntity
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.params.HttpParams
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpHost
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpHost
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpHost
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpHost
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.client.HttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.client.methods.HttpEntityEnclosingRequestBase depends on program class org.apache.http.HttpEntity
    Warning:library class org.apache.http.client.methods.HttpOptions depends on program class org.apache.http.HttpResponse
    Warning:library class org.apache.http.client.methods.HttpRequestBase depends on program class org.apache.http.ProtocolVersion
    Warning:library class org.apache.http.client.methods.HttpRequestBase depends on program class org.apache.http.RequestLine
    Warning:library class org.apache.http.client.utils.URLEncodedUtils depends on program class org.apache.http.HttpEntity
    Warning:library class org.apache.http.conn.scheme.SchemeRegistry depends on program class org.apache.http.HttpHost
    Warning:library class org.apache.http.conn.scheme.SocketFactory depends on program class org.apache.http.params.HttpParams
    Warning:library class org.apache.http.conn.ssl.SSLSocketFactory depends on program class org.apache.http.params.HttpParams
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.params.HttpParams
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.HttpRequestExecutor
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.ConnectionReuseStrategy
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.BasicHttpProcessor
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.params.HttpParams
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.HttpRequestExecutor
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.ConnectionReuseStrategy
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.BasicHttpProcessor
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpResponseInterceptor
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpRequestInterceptor
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpHost
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpHost
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpResponse
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.HttpRequestExecutor
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.ConnectionReuseStrategy
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.HttpProcessor
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.params.HttpParams
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.params.HttpParams
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpHost
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpHost
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.HttpRequest
    Warning:library class org.apache.http.impl.client.AbstractHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.impl.client.DefaultHttpClient depends on program class org.apache.http.params.HttpParams
    Warning:library class org.apache.http.impl.client.DefaultHttpClient depends on program class org.apache.http.protocol.HttpRequestExecutor
    Warning:library class org.apache.http.impl.client.DefaultHttpClient depends on program class org.apache.http.protocol.HttpContext
    Warning:library class org.apache.http.impl.client.DefaultHttpClient depends on program class org.apache.http.ConnectionReuseStrategy
    Warning:library class org.apache.http.impl.client.DefaultHttpClient depends on program class org.apache.http.protocol.BasicHttpProcessor
    Warning:there were 15 unresolved references to classes or interfaces.
    Warning:there were 132 instances of library classes depending on program classes.
    Warning:there were 1 unresolved references to program class members.
    Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.

1 个答案:

答案 0 :(得分:0)

您无法使用DefaultHttpClient,因为Android 6.0+上没有apache库。请点击Android 6.0 changes

了解更多信息