当前位置: 代码迷 >> 综合 >> Flutter中iOS报错Trying to embed a platform view but the PrerollContext,PaintContext does not support em
  详细解决方案

Flutter中iOS报错Trying to embed a platform view but the PrerollContext,PaintContext does not support em

热度:68   发布时间:2024-02-06 23:47:03.0

Flutter中异常处理:
[VERBOSE-2:platform_view_layer.cc(20)] Trying to embed a platform view but the PrerollContext does not support embedding
[VERBOSE-2:platform_view_layer.cc(37)] Trying to embed a platform view but the PaintContext does not support embedding

file

ios/Runner/Info.plistdict标签中添加如下权限。

<key>io.flutter.embedded_views_preview</key>
<true/>
  相关解决方案