App Crash on Android P or Android 6.0 above due to lack of org.apache.http.legacy library #291
Description
When you click the map tab icon from the home page after a few seconds ,the app will be crashed.
Crash Log is below:
Process: com.google.samples.apps.iosched, PID: 3949
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion;
at ep.b(:com.google.android.gms.dynamite_mapsdynamite@13280081@13.2.80 (100400-211705629):3)
at eo.a(:com.google.android.gms.dynamite_mapsdynamite@13280081@13.2.80 (100400-211705629):4)
at eq.a(:com.google.android.gms.dynamite_mapsdynamite@13280081@13.2.80 (100400-211705629):55)
at com.google.maps.api.android.lib6.drd.ap.a(:com.google.android.gms.dynamite_mapsdynamite@13280081@13.2.80 (100400-211705629):11)
at dx.a(:com.google.android.gms.dynamite_mapsdynamite@13280081@13.2.80 (100400-211705629):17)
at dx.run(:com.google.android.gms.dynamite_mapsdynamite@13280081@13.2.80 (100400-211705629):65)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.ProtocolVersion" on path: DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/00000032/MapsDynamite.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/00000032/MapsDynamite.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at ad.loadClass(:com.google.android.gms.dynamite_dynamiteloader@13280081@13.2.80 (100400-211705629):25)
I'v tried to uselibrary 'org.apache.http.legacy' in the root build.gradle. but it doesn't work.
Finally,I tried to add content: to AndroidManifest.xml ,this time it worked.
Hope this issue can be fixed soon.