0

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. enter image description here

it shows an error message that

enter image description here

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Murali
  • 13
  • 1
  • 7
  • http://stackoverflow.com/questions/28470486/android-multipartentity-and-dependencies – IntelliJ Amiya Feb 09 '16 at 07:01
  • http://tacticalnuclearstrike.com/2010/01/using-multipartentity-in-android-applications/ – Sabyasachi Feb 09 '16 at 07:02
  • 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... – Yogesh Patel Feb 09 '16 at 07:08

3 Answers3

3

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.

Mustansar Saeed
  • 2,730
  • 2
  • 22
  • 46
0

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

RushDroid
  • 1,570
  • 3
  • 21
  • 46
-1

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

Yogesh Patel
  • 195
  • 2
  • 14