【问题标题】:Set image as marker将图像设置为标记
【发布时间】: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


    【解决方案1】:

    Here我们有解决办法,是获取图片的方法有问题

    【讨论】:

      猜你喜欢
      • 2018-11-08
      • 2019-03-30
      • 2020-12-09
      • 2014-06-21
      • 1970-01-01
      • 2016-01-21
      • 2013-02-02
      • 2020-04-13
      • 1970-01-01
      相关资源
      最近更新 更多