Workaround: Android 6.0 (API) SDK, no longer available org.apache.http.* (only a few classes reserved)

Source: Internet
Author: User

When using Android-async-http, my APL was updated to 23, and my build version was 23, and Org.apache.http.Header This class was not found, because in API 23, Org.apache.http.* not available (only a few classes are reserved)

Android Studion Workaround:
android {    ‘org.apache.http.legacy‘}
    • Complete as shown below

    • Reference documents

Https://developer.android.com/intl/zh-cn/preview/behavior-changes.html#behavior-apache-http-client

    • Document

Eclipse Solutions
libs中加入org.apache.http.legacy.jar上面的jar包在:**\android-sdk\platforms\android-236.0的SDK)
    • Complete

    • Download link
      org.apache.http.legacy.jar-0 min

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Workaround: Android 6.0 (API) SDK, no longer available org.apache.http.* (only a few classes reserved)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.