• Apache HTTP client deprecation (Behavior changes: apps targeting API level 28+)



    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

    FAVOURITE LINE

    To steal ideas from one is plagiarism. To steal from many is Research.

    ADDRESS

    Mumbai , Maharashtra

    EMAIL

    shikha.pathak6@gmail.com
    shikha.the.swt.pari@gmail.com

    Skype

    shikha_pari