Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpClientBuilder still incompatible with API 26 on Android #152

Open
liamrathke opened this issue Mar 17, 2018 · 1 comment
Open

HttpClientBuilder still incompatible with API 26 on Android #152

liamrathke opened this issue Mar 17, 2018 · 1 comment

Comments

@liamrathke
Copy link

Hey,

I'm pretty sure that there are still some issues with HTTPClientBuilder when used with Android API 26. I am unable to run my app since I can't get the BasicLineFormatter to download from Android.

03-17 14:44:16.407 27293-27293/edu.tjhsst.api E/AndroidRuntime: FATAL EXCEPTION: main Process: *******, PID: 27293 java.lang.NoSuchFieldError: No field INSTANCE of type Lorg/apache/http/message/BasicLineFormatter; in class Lorg/apache/http/message/BasicLineFormatter; or its superclasses (declaration of 'org.apache.http.message.BasicLineFormatter'

Per the other issue's suggestion, I've also tried using useLibrary 'org.apache.http.legacy', but that hasn't resolved the error.

Are there any ways to resolve this conflict?

@hmble
Copy link

hmble commented May 9, 2018

As shown in this guide as an alternative to Apache HttpClient we should use HttpURLConnection

To use this library you can use useLibrary 'java.net.URLConnection'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants