I want to build a project, that uses Apache HTTP client, for Android P. As far as I understand, there are 2 ways to do this:
First via AndroidManifest.xml:
<application
...
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
</application>
Second via build.gradle:
android {
useLibrary 'org.apache.http.legacy'
}
Are these ways equivalent?
Why android.useLibrary command in build gradle DOES NOT add the uses-library tag in AndroidManifest.xml?