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 Pie migration #9

Closed
V1rus999 opened this issue Aug 22, 2018 · 6 comments
Closed

Android Pie migration #9

V1rus999 opened this issue Aug 22, 2018 · 6 comments

Comments

@V1rus999
Copy link

V1rus999 commented Aug 22, 2018

From the android developers website: "With Android 6.0, we removed support for the Apache HTTP client. Beginning with Android 9, that library is removed from the bootclasspath and is not available to apps by default."

There is a workaround where you have to add: to the manifest.

Are there any plans to remove apache and use something else?

@Prashanthlkv
Copy link

Prashanthlkv commented Sep 10, 2018

There is a workaround where you have to add: to the manifest?
@V1rus999
Could you please let me know what is the workaround to resolve this issue?
I tried with Android 9, it's not working.

@V1rus999
Copy link
Author

V1rus999 commented Sep 10, 2018

@Prashanthlkv

Apologies I thought I added it to the OP.

<uses-library android:name="org.apache.http.legacy" android:required="false" />

Needs to be added to your manifest file under the application tag.

@Prashanthlkv
Copy link

Prashanthlkv commented Sep 10, 2018

@V1rus999
Thanks for the quick response . It's working fine now. Still I feel this should be handled at SDK end. What is your thoughts on this?

@V1rus999
Copy link
Author

V1rus999 commented Sep 10, 2018

@Prashanthlkv I haven't looked at why Notification Hubs uses the apache http library, but my thought is they can replace it with something else.

@acastr7
Copy link

acastr7 commented Sep 27, 2018

Getting this error too, my error logs show "Didn't find class "org.apache.http.Header" on path: DexPathList[[zip file ...."

The work around stated above worked. You can find the Android documentation about this issue here https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p

@stankovski
Copy link
Member

stankovski commented Oct 18, 2018

Duplicate issue #46
We have fixed the SDK and upload an update to bintray

@Alessar Alessar transferred this issue from Azure/azure-notificationhubs Mar 5, 2019
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

4 participants