Apache HTTP Client Removal
Android 6.0 release removes support for the Apache HTTP client. If your app is using this client and targets Android 2.3 (API level 9) or higher, use the HttpURLConnection class instead. This API is more efficient because it reduces network use through transparent compression and response caching, and minimizes power consumption. To continue using the Apache HTTP APIs, you must first declare the following compile-time dependency in your build.gradle file:

android {
    useLibrary 'org.apache.http.legacy'
}
/*--------------------------------------------------------*/

原文地址:http://developer.android.com/intl/zh-cn/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-09-14
  • 2021-05-17
  • 2022-03-12
  • 2021-08-05
猜你喜欢
  • 2022-12-23
  • 2021-04-18
  • 2022-03-03
  • 2021-12-11
  • 2021-11-28
  • 2022-02-26
相关资源
相似解决方案