【发布时间】:2022-01-29 00:09:27
【问题描述】:
我正在使用 Google 地图开发 Flutter 应用。
我正在尝试将图像设置为标记。 一切正常,但如果我设置了一组特定的图像,我会收到此错误:
E/flutter ( 7241): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(error, Failed to decode image. The provided image must be a Bitmap., null, com.google.maps.api.android.lib6.common.apiexception.b: Failed to decode image. The provided image must be a Bitmap.
有人知道如何解决这个问题吗?
我已经为超过 500 张图片设置了此设置
【问题讨论】:
标签: flutter google-maps-markers google-maps-api-2