Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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??

like image 562
yaochangliang Avatar asked Jul 20 '26 05:07

yaochangliang


2 Answers

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

like image 156
Mochamad Taufik Hidayat Avatar answered Jul 21 '26 21:07

Mochamad Taufik Hidayat


in your app's build.gradle file, write

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

in

dependencies{
...//<here>
}
like image 31
Pranay Shirolkar Avatar answered Jul 21 '26 21:07

Pranay Shirolkar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!