Skip to content Skip to sidebar Skip to footer

Android Asynchronous Http Client : @override Onsuccess(int Statuscode, Header[] Headers, String Content)

I'm trying to get cookie from server response (from Headers). I built library from source : https://github.com/loopj/android-async-http and add it to my project. Here i try to ove

Solution 1:

Headers type supposed to be org.apache.http.Header[] instead of Header[]

Solution 2:

I have ever faced with this problem. Try to open your gradle (Gradle Scripts), edit your build.gradle(Module:app) by adding:

dependencies {
 compile'com.loopj.android:android-async-http:1.4.9'
}

after your gradle running, try import cz.msebera.android.httpclient.Header;

I hope it will help you :)

Post a Comment for "Android Asynchronous Http Client : @override Onsuccess(int Statuscode, Header[] Headers, String Content)"