Is there a workaround/fix to these Google Maps v2 StackOverflowError crashes?

后端 未结 1 1897
情深已故
情深已故 2020-12-16 00:39

Seeing multiple crashes in my production app related to Google Maps v2, hundreds per day.

I can repro the issue even on Lyft, Yelp, Ritual apps.

Repr

相关标签:
1条回答
  • 2020-12-16 01:30

    After trying multiple things, the following is a workaround that worked for me, if you don't require indoor mapping.

    // Kotlin
    googleMap.isIndoorEnabled = false
    
    // Java
    googleMap.setIndoorEnabled(false);
    

    All the crashes I was seeing were related to the indoor package, so this makes some sense. Hopefully, a fix is released soon. Will post if the issue on AOSP tracker is solved.

    Update

    Good news. Google marked the bug as Fixed on October 20, 2018. Also it was mentioned in release notes of latest Maps Android SDK in Google Play Services

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

    0 讨论(0)
提交回复
热议问题