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?

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.
HarmonyOS
2天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
FengTianYa

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

分享
微博
QQ
微信
回复
1天前
相关问题
HarmonyOS webview_flutter报错
73浏览 • 1回复 待解决
HarmonyOS flutter webview如何调试
106浏览 • 1回复 待解决
求大佬告知怎么保存webview
1585浏览 • 1回复 待解决
HarmonyOS 图片保存
64浏览 • 1回复 待解决
HarmonyOS PDF文件保存
70浏览 • 1回复 待解决