HarmonyOS webView_flutter保存

1、ERROR:

ArkTS:ERROR File: /Users/xxxxx/.pub-cache/git/flutter_packages-335b6f6f4620090a9bf503536e6af82d593fbb06/packages/webview_flutter-v4.4.4/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/OhosWebView.ets:17:10  Module '"@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformView"' has no exported member 'Params'. Did you mean to use 'import Params from "@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformView"' instead?
  • 1.

2、ERROR:

ArkTS:ERROR File: /Users/xxxxx/.pub-cache/git/flutter_packages-335b6f6f4620090a9bf503536e6af82d593fbb06/packages/webview_flutter-v4.4.4/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostApiImpl.ets:396:3
Property 'getView' in type 'WebViewPlatformView' is not assignable to the same property in base type 'PlatformView'.
Type '() => WrappedBuilder<[Params]>' is not assignable to type '() => DVModel'.
Type 'WrappedBuilder<[Params]>' is missing the following properties from type 'DVModel': id_, compType, params, events, and 2 more.
  • 1.
  • 2.
  • 3.
  • 4.
HarmonyOS
2024-12-25 10:14:34
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
FengTianYa

看报错是产物版本过低导致的问题,请确认将flutter_flutter更新到dev分支最新代码,编译/构建时不要传入–local-engine参数。

分享
微博
QQ
微信
回复
2024-12-25 12:19:26


相关问题
HarmonyOS webview_flutter问题
802浏览 • 1回复 待解决
HarmonyOS webview_flutter报错
1311浏览 • 1回复 待解决
HarmonyOS flutter webview如何调试
831浏览 • 1回复 待解决
HarmonyOS 如何在Flutter中嵌入WebView
651浏览 • 1回复 待解决
求大佬告知怎么保存webview
2372浏览 • 1回复 待解决
HarmonyOS flutter_webview重定向无法返回
900浏览 • 1回复 待解决
HarmonyOS webview_flutter_ohos加载网页白屏
1070浏览 • 1回复 待解决
HarmonyOS flutter_flutter项目进展
828浏览 • 1回复 待解决