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.
阅读 469
1 个回答

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进