相关疑难解决方法(0)

启用Proguard后获取com.loopj.android.http.AsyncHttpClient

我已经读过这篇文章,从很长一段时间来看,它看起来都是一个已知的问题.但是当我不使用时,我没有收到任何警告或崩溃pro-guard.启用后,我收到大约500个警告,如下所示;

警告:com.loopj.android.http.AsyncHttpClient:找不到引用的类cz.msebera.android.httpclient

我试过跟随,但仍然有所有的警告.

android {

    compileSdkVersion 24
    buildToolsVersion "24.0.3"
    useLibrary 'org.apache.http.legacy'

}
Run Code Online (Sandbox Code Playgroud)

我没有使用http-client库,但我可能在我的项目中使用的其他库正在使用它.

警告

Warning:com.loopj.android.http.RangeFileAsyncHttpResponseHandler: can't find referenced class cz.msebera.android.httpclient.HttpResponse
Warning:com.loopj.android.http.RangeFileAsyncHttpResponseHandler: can't find referenced class cz.msebera.android.httpclient.Header
Warning:com.loopj.android.http.RangeFileAsyncHttpResponseHandler: can't find referenced class cz.msebera.android.httpclient.StatusLine
Warning:com.loopj.android.http.RangeFileAsyncHttpResponseHandler: can't find referenced class cz.msebera.android.httpclient.HttpResponse
Warning:com.loopj.android.http.RangeFileAsyncHttpResponseHandler: can't find referenced class cz.msebera.android.httpclient.HttpEntity
Warning:com.loopj.android.http.RangeFileAsyncHttpResponseHandler: can't find referenced class cz.msebera.android.httpclient.client.methods.HttpUriRequest
Warning:com.loopj.android.http.RequestParams: can't find referenced class cz.msebera.android.httpclient.protocol.HTTP
Warning:com.loopj.android.http.RequestParams: can't find referenced class cz.msebera.android.httpclient.message.BasicNameValuePair
Warning:com.loopj.android.http.RequestParams: can't find referenced class cz.msebera.android.httpclient.client.entity.UrlEncodedFormEntity
Warning:com.loopj.android.http.RequestParams: can't find referenced class cz.msebera.android.httpclient.message.BasicNameValuePair
Warning:com.loopj.android.http.RequestParams: can't …
Run Code Online (Sandbox Code Playgroud)

performance android proguard android-layout android-fragments

0
推荐指数
1
解决办法
478
查看次数