1. Are you ready for the Galaxy S20? Here is everything we know so far!

Cannot resolve symbol 'httpclient'

Discussion in 'Android Help' started by Karupusamy, Jan 23, 2016.

  1. Karupusamy

    Karupusamy Lurker
    Thread Starter

    Hi All,

    I am a fresher to android.
    i have a problem in
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpGet;
    import org.apache.http.impl.client.DefaultHttpClient;
    import org.apache.http.impl.client.HttpClients;

    Not supported in my android studio.

    apply plugin: 'com.android.application'

    android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    // Modify
    // useLibrary 'org.apache.http.legacy'

    // useLibrary 'org.apache.http.legacy'

    defaultConfig {
    applicationId "crescent.myapplication"
    // minSdkVersion 22
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    }

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:design:23.0.1'
    compile 'org.apache.httpcomponents:httpcore:4.4.1'
    compile 'org.apache.httpcomponents:httpclient:4.5'
    compile 'com.google.android.gms:play-services-appindexing:8.1.0'
    }

    I am having SDK23 , this is not supported. Pls help me.
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Cannot resolve symbol
  1. unet
    Replies:
    0
    Views:
    212
  2. DridriLaBastos
    Replies:
    0
    Views:
    211
  3. kgash
    Replies:
    6
    Views:
    416
  4. ixoni
    Replies:
    8
    Views:
    702
  5. oneytlam
    Replies:
    2
    Views:
    545
  6. Christopher Clayton
    Replies:
    0
    Views:
    369
  7. robertanisoiu
    Replies:
    1
    Views:
    1,090
  8. Anand Suthar
    Replies:
    1
    Views:
    1,280
  9. Elereth
    Replies:
    0
    Views:
    2,693
  10. Morganw236
    Replies:
    3
    Views:
    2,337

Share This Page

Loading...