Error : Caused by: java.lang.NoClassDefFoundError: Failed resolution Lorg/apache/http/impl/client/DefaultHttpClient;
This link android-9.0-changes-28-->Apache HTTP client deprecation explains reason for adding the following to your AndroidManifest.xml:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
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.
0 comments:
Post a Comment