STRATOSpeed
STRATOSpeed

Reputation: 99

Cannot resolve symbol AsyncHttpClient

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

Upvotes: 2

Views: 6553

Answers (1)

Avinash A R
Avinash A R

Reputation: 176

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

Upvotes: 6

Related Questions