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
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.*;