I have an old android app that uses the apache legacy Http library (org.apache.http.legacy). After the changes on Android 6, I was able to keep the app working including the
Your classes seem to be conflicting.
As an alternative to using the runtime Apache library, apps can bundle their own version of the
org.apache.http
library in their APK. If you do this, you must repackage the library (with a utility like Jar Jar) to avoid class compatibility issues with the classes provided in the runtime.
See here