Mapbox-gl 在 android 模拟器(离子电容器)上崩溃

Mapbox-gl crashing on android emulator (ionic capacitor)

我正在开发一个使用 Ionic 5 Capacitor 的应用程序/Angular,在我使用 mapbox-gl 启动模拟器之前一切正常。它一直在崩溃,我不明白为什么,因为它在我的网络版本上运行良好。

有人知道怎么处理这种情况吗?

Webgl 仅适用于 android Q 模拟器或更新版本,当使用 webview 加载应用程序时 https://issuetracker.google.com/issues/37129533

更好地在真实设备上进行测试