android studio does not identifies HttpResponse & StringEntity

android studio does not identifies HttpResponse & StringEntity

download these libraries: enter

then paste them in your project folder >>app >lib >>here

Then go to AS,right click on project >>open module settings>>dependecies TAB>>Click +>>add file dependency >> locate the lib folder and import all three of them.And you are done!!

First you have to check that in your libs folder

Make

Then add into your gradle file like this 

    android {
        compileSdkVersion 23
        buildToolsVersion 23.0.2

        defaultConfig {
            applicationId info.tranetech.laundry
            minSdkVersion 15
            targetSdkVersion 23
            versionCode 1
            versionName 1.0
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile(proguard-android.txt), proguard-rules.pro
            }
        }
    }
    android {
        useLibrary org.apache.http.legacy
    }
    dependencies {
        compile fileTree(dir: libs, include: [*.jar])
        compile com.android.support:appcompat-v7:23.0.1
        compile com.android.support:design:23.0.1
        testCompile junit:junit:4.12
        compile files(libs/android-async-http-1.4.4.jar)
        compile com.google.android.gms:play-services:8.4.0
    }

This

  [1]: http://i.stack.imgur.com/V6B4y.png
  [2]: http://i.stack.imgur.com/6VxrE.png

Also

android studio does not identifies HttpResponse & StringEntity

Leave a Reply

Your email address will not be published. Required fields are marked *