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??
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
in your app's build.gradle file, write
compile 'cz.msebera.android:httpclient:4.3.6'
in
dependencies{
...//<here>
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With