yaochangliang
yaochangliang

Reputation: 33

android import android-async-http-master have error

I got an android project from github named android-async-http-master, this is the download link : https://github.com/loopj/android-async-http but when I import the project to eclipse, it have an error.

I got errors like this:

import cz.msebera.android.httpclient.Header;
import cz.msebera.android.httpclient.HeaderElement;

so my problem is : the project package name is com.loopj.android.http ,where is the cz.msebera.android.httpclient package??

Upvotes: 3

Views: 4075

Answers (2)

Mochamad Taufik Hidayat
Mochamad Taufik Hidayat

Reputation: 1314

you must download this jar cz.msebera.android and then import to your project

if you using android studio just add this compile 'cz.msebera.android:httpclient:4.3.6' in your .gradle depedencies

hope it help

Upvotes: 8

Pranay Shirolkar
Pranay Shirolkar

Reputation: 167

in your app's build.gradle file, write

compile 'cz.msebera.android:httpclient:4.3.6'

in

dependencies{
...//<here>
}

Upvotes: 1

Related Questions