hello i was trying to use MultipartEntity but i was unable to use them can u solve this how to make them import in my project.
it shows an error message that
hello i was trying to use MultipartEntity but i was unable to use them can u solve this how to make them import in my project.
it shows an error message that
Please use the legacy http library in build.gradle
if you are using Android Studio
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
useLibrary 'org.apache.http.legacy'
}
Hope this helps.
just Use this in your build.gradle
android {
useLibrary 'org.apache.http.legacy'
}
or You can Use this librery Okhttp Here You Can read
http://square.github.io/okhttp/
its So simple for call Webservices and Upload Image As well as
change your compileSdkVersion to 22 and make changes in dependencies as: compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.android.support:support-v4:22.1.1' in your app gradle