Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps crashing on Android Pie

I am testing Google Map on Google Pixel running the latest version of Android Pie.

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/0000000e/MapsDynamite.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/0000000e/MapsDynamite.apk!/lib/arm64-v8a, /system/lib64]]
like image 958
mihirjoshi Avatar asked Sep 02 '18 16:09

mihirjoshi


People also ask

Why does Google Maps keep force closing?

Restart Your Device If the issue persists, you can try restarting your device as well. Sometimes, apps and processes running in the background can interfere with Google Maps and cause it to crash. Restarting your device will help close such processes and also fix any minor glitches along the way.

Why is Google Maps not working 2022?

First, make sure that you're using the latest version of the Maps app. If you're not, you can update the app by going to the Google Play Store or the App Store. If that doesn't fix the problem, try restarting your computer. If that doesn't work, try reinstalling the Maps app.

Why is Google Maps not working on Android?

You may need to update your Google Maps app, connect to a stronger Wi-Fi signal, recalibrate the app, or check your location services. You can also reinstall the Google Maps app if it isn't working, or simply restart your iPhone or Android phone.


1 Answers

This error occurs on Android 9.0. Add the below code in the <application> element of manifest

<uses-library
  android:name="org.apache.http.legacy"
  android:required="false" />

Refer to Specify requirement for Apache HTTP Legacy library docs.

like image 57
Anubhav Gupta Avatar answered Oct 31 '22 04:10

Anubhav Gupta