HarmonyOS赋能Flutter引入适配版本的flutter_inappwebview编译失败

编译异常日志:

ERROR: ArkTS:ERROR File: /~/~/.pub-cache/git/flutter_inappwebview-1ad1f9ff58c64bf0ccbde464f45608d0ee0e70b5/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/InAppWebViewManager.ets:18: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?

  ERROR: ArkTS:ERROR File: /~/~/.pub-cache/git/flutter_inappwebview-1ad1f9ff58c64bf0ccbde464f45608d0ee0e70b5/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/FlutterWebViewFactory.ets:84:5
Type 'FlutterWebView' is not assignable to type 'PlatformView'.
Types of property 'getView' are incompatible.
Type '() => WrappedBuilder<[Params]>' is not assignable to type '() => DVModel'.

COMPILE RESULT:FAIL {ERROR:7 WARN:23}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.

详细问题地址:https://gitee.com/openharmony-sig/flutter_inappwebview/issues/IA8EXI?from=project-issue

HarmonyOS
2024-12-28 08:38:25
3175浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
fox280

对于引入适配版本的flutter_inappwebview编译失败,FlutterEngine构建产物是否是最新的,如果不是请下载最新的再重新编译和运行。下载地址:https://docs.qq.com/sheet/DUnljRVBYUWZKZEtF?tab=BB08J2

分享
微博
QQ
微信
回复
2024-12-28 10:54:50


相关问题
HarmonyOS flutter_inappwebview问题
499浏览 • 1回复 待解决
HarmonyOS Flutter版本适配问题
624浏览 • 1回复 待解决
HarmonyOS flutter build hap --debug编译失败
467浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
645浏览 • 1回复 待解决
HarmonyOS flutter版本过低
403浏览 • 1回复 待解决
HarmonyOS 引入har编译失败
679浏览 • 1回复 待解决
HarmonyOS flutter如何适配折叠屏
670浏览 • 1回复 待解决
flutter适配HarmonyOS图片压缩
642浏览 • 1回复 待解决
HarmonyOS flutter框架url_launcher适配
520浏览 • 1回复 待解决
flutter HarmoneyOS 版本 SDK 安装指导
898浏览 • 1回复 待解决
HarmonyOS flutter三方plugin适配进展
473浏览 • 1回复 待解决
HarmonyOS XCode 15.3无法编译flutter engine
501浏览 • 1回复 待解决
flutter_slider_drawer适配HarmoneyOS版
520浏览 • 1回复 待解决