我正在运行最新版 Android Pie 的 Google Pixel 上测试 Google map 。
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]]
最佳答案
此错误发生在 Android 9.0 上。
在 <application>
中添加以下代码 list 元素
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
关于android - 谷歌地图在 Android Pie 上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52139199/