Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android M HttpClient removal breaks compatibility?

We know that Android M has removed support for HttpClient. Apps linking with it will have to explicitly say so: add a library dependency in your gradle file.

But does it break backward compatibility with existing applications?
Suppose I wrote an app which supports Api level 1 and higher and it's never maintained since last year. The targetSdkLevel of the app is certainly lower than 22. Will it crash on Android M? The source code could have been lost.

like image 809
suitianshi Avatar asked Aug 20 '26 03:08

suitianshi


1 Answers

The answer looks to be yes.

I looked in the Android M source code through the SDK manager, and the package for the client is not in the source.

Package name for the HttpClient:

org.apache.http.client.HttpClient

Existing paths:

org.apache.http.conn

org.apache.http.params

like image 160
Knossos Avatar answered Aug 21 '26 16:08

Knossos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!