title: How to use apache http on Android P
body: <p>When I run my app in <em>Android P</em> devices, I get some error like this:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to instantiate application com.le.android.client.LeApplication: java.lang.ClassNotFoundException: Didn't find class "com.le.android.client.LeApplication" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.le.android.client-uvQkO641-__8Z_p2oT0t7g==/base.apk"],nativeLibraryDirectories=[/data/app/com.le.android.client-uvQkO641-__8Z_p2oT0t7g==/lib/arm, /data/app/com.le.android.client-uvQkO641-__8Z_p2oT0t7g==/base.apk!/lib/armeabi, /system/lib, /vendor/lib]]
  at android.app.LoadedApk.makeApplication(LoadedApk.java:1009)
  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5836)
  at android.app.ActivityThread.access$1000(ActivityThread.java:198)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1637)
  at android.os.Handler.dispatchMessage(Handler.java:106)
  at android.os.Looper.loop(Looper.java:164)
  at android.app.ActivityThread.main(ActivityThread.java:6649)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:826)
  
  Caused by: java.lang.ClassNotFoundException: Didn't find class "com.le.android.client.LeApplication" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.le.android.client-uvQkO641-__8Z_p2oT0t7g==/base.apk"],nativeLibraryDirectories=[/data/app/com.le.android.client-uvQkO641-__8Z_p2oT0t7g==/lib/arm, /data/app/com.le.android.client-uvQkO641-__8Z_p2oT0t7g==/base.apk!/lib/armeabi, /system/lib, /vendor/lib]]
  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
  at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:50)
  at android.app.Instrumentation.newApplication(Instrumentation.java:1120)
  at android.app.LoadedApk.makeApplication(LoadedApk.java:1001)
  ... 9 more
  </code></pre>
  
  <p>How should I use the library <code>org.apache.http.legacy</code> in <em>Android P</em>?</p>