当我仅选择伦敦位置时,我在 google 地图上崩溃

I am getting crash on google map when i am selecting the London Location only

我已经在我的一个应用程序中实现了 google 地图,当我 select 在任何位置而不是伦敦时,一切都运行良好,但是当我尝试 select伦敦的任何位置并尝试放大和缩小应用程序都会崩溃。

请帮帮我。我只想用 Google 地图来做,我不想使用任何第三方地图。

DisplayMetrics displayMetrics = new DisplayMetrics();
            getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
            int height = displayMetrics.heightPixels;
            int width = displayMetrics.widthPixels;
            LatLngBounds bounds = new LatLngBounds(new LatLng(lat, lng), new LatLng(lat, lng));
            googleMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, width, height, 20));

Logcat :

07-02 05:20:35.409 32739-665/com.example E/AndroidRuntime: FATAL EXCEPTION: GLThread 19450 Process: com.example, PID: 32739 java.lang.WhosebugError: stack size 1037KB at com.google.maps.api.android.lib6.common.i.(:com.google.android.gms.dynamite_dynamitemodulesb@12685025@12.6.85 (040408-197041431):9)

Google 问题跟踪器中有多个关于东京、旧金山、伦敦等不同城市发生车祸的报告

https://issuetracker.google.com/issues/35829548

请随时为这个错误加注星标以添加您的投票和订阅通知。

2018 年 6 月 25 日来自 Google 的最后一条消息指出

We'll actually keep using this issue for instances of this crash where indoor maps are disabled, sorry for the confusion.

We are currently internally testing a fix for this issue and will add it to the updates pipeline once it's ready. Due to the timing of release cycles, we still recommend disabling indoor maps as best short-term workaround for now if you or your users are heavily affected. We will post an update here when the fix for this issue is rolled-out.

尝试遵循他们的建议并将 googleMap.setIndoorEnabled(false); 设置为解决方法。

更新

好消息。 Google 已于 2018 年 10 月 20 日将该错误标记为已修复。此外,在 Google Play Services

中的最新 Maps Android SDK 发行说明中也提到了该错误

https://developers.google.com/maps/documentation/android-sdk/releases#october_18_2018