Question

[Solved] NameValuePair Error “NameValuePair cannot be resolved to a type” [duplicate]

I m new in android and i m creating a project like this tutorial and its showing the error like the following photo.Please help me out of this.enter image description here

Solution #1:

Your project’s compileSdkVersion is set to 23. Apache’s HttpClient library was removed from the Android SDK in API Level 23.

If you change your compileSdkVersion to 21, your app will compile cleanly. Or, there is a workaround to continue using HttpClient in Android 6.0 with Android Studio. However, for long-term development, you really need to move to something else for an HTTP API. That “something else” could be:

Or, depending upon the nature of your HTTP work, you might choose a library that supports higher-order operations (e.g., Retrofit for Web service APIs).

Respondent: CommonsWare
The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Most Popular

To Top
India and Pakistan’s steroid-soaked rhetoric over Kashmir will come back to haunt them both clenbuterol australia bossier man pleads guilty for leadership role in anabolic steriod distribution conspiracy