Android:android SDK Source Code of why there is no httpclient source

Source: Internet
Author: User

Today I want to use this API, how can not find. Waste a lot of time ...

Check the information to know the following explanation:

In Android 6.0 (API 23), Google has removed the removal of Apache HttpClient related classes recommended to use HttpURLConnection, if you want to continue to use Apache HttpClient, Need to add org.apache.http.legacy.jar,android Studio in Eclipse Libs under the corresponding module Build.gradle: android {uselibrary ' Org.apache.http.legacy '} above the jar package under: **\android-sdk-windows\platforms\android-23\optional (need to download Android 6.0 SDK) also removes the Setlatesteventinfo method for SSL and notification

Look at my API is 23, can not find this API is normal ...

After all, this API post is cumbersome, in fact, mastering httpconnection is enough.

Android:android SDK Source Code of why there is no httpclient source

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.