Android Volley Signed Apk Issue

不羁的心 提交于 2019-12-04 10:05:16
Guilherme Costa

Use this code in ProGuard:

-dontwarn org.apache.http.**
-dontwarn android.net.http.AndroidHttpClient
-dontwarn com.google.android.gms.**
-dontwarn com.android.volley.toolbox.**

Since android API 23 Apache HTTP Client is removed from Android: https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client But Volley still uses it, that's why there is warn about can't find referenced class We can ignore these warns, because Volley is still compiled using API 22: https://github.com/mcxiaoke/android-volley/blob/master/gradle.properties Still should think about other better libray like OkHttp, which uses HttpURLConnection, if Volley doesn't update in the future.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!