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}

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

HarmonyOS
2024-12-28 08:38:25
浏览
收藏 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问题
412浏览 • 1回复 待解决
HarmonyOS Flutter版本适配问题
487浏览 • 1回复 待解决
HarmonyOS flutter build hap --debug编译失败
313浏览 • 1回复 待解决
HarmonyOS flutter版本过低
325浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
511浏览 • 1回复 待解决
HarmonyOS 引入har编译失败
479浏览 • 1回复 待解决
flutter适配HarmonyOS图片压缩
558浏览 • 1回复 待解决
HarmonyOS flutter如何适配折叠屏
531浏览 • 1回复 待解决
flutter HarmoneyOS 版本 SDK 安装指导
781浏览 • 1回复 待解决
HarmonyOS flutter框架url_launcher适配
410浏览 • 1回复 待解决
HarmonyOS XCode 15.3无法编译flutter engine
435浏览 • 1回复 待解决
flutter_slider_drawer适配HarmoneyOS版
418浏览 • 1回复 待解决
HarmonyOS flutter三方plugin适配进展
384浏览 • 1回复 待解决