Cannot resolve symbol AsyncHttpClient

6.3k views Asked by At

I'm trying to use:

AsyncHttpClient client = new AsyncHttpClient();

and it says:

cannot resolve symbol 'AsyncHttpClient'.

I'm using latest Android Studio and build.gradle min:15 target:22

1

There are 1 answers

0
Avinash A R On BEST ANSWER

download jar file from http://loopj.com/android-async-http/ and paste in in app/lib folder

Add maven dependency using Gradle buildscript in format

dependencies {
  compile 'com.loopj.android:android-async-http:1.4.9'
}

and then Import the http package.

import com.loopj.android.http.*;