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

Android 9 - Apache HTTP client deprecation #37

Open
large opened this issue Mar 7, 2019 · 0 comments
Open

Android 9 - Apache HTTP client deprecation #37

large opened this issue Mar 7, 2019 · 0 comments

Comments

@large
Copy link

large commented Mar 7, 2019

Websocket.PCL library has worked just fine for Android until version 9 is targeted.
Ref: https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p

Project is always getting exception:
Java.Lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/RequestLine;

Tried to add in androidmanifest.xml:
uses-library android:name="org.apache.http.legacy" android:required="false" /
Tried to set required to true and it worked. But how long will it be available in the optional directory of the sdks?

But now you have to have to bundle this library to get it back running.
Any tips for a quickfix or should I move along to another WSClient?

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

1 participant