Skip to content Skip to sidebar Skip to footer

Namevaluepair Error "namevaluepair Cannot Be Resolved To A Type"

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.

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).

Post a Comment for "Namevaluepair Error "namevaluepair Cannot Be Resolved To A Type""