Apache HTTP Client Removal start from Android SDK 23. So we have to add they back manually.
The org.apache.http.legacy.jar is in Android/sdk/platforms/android-23/optional and copy it to your Android project. For exmple, libs folder.
1. Modified build.gradle file with below changes.
2. Modified proguard files.