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问题
984浏览 • 1回复 待解决
HarmonyOS Flutter版本适配问题
1500浏览 • 1回复 待解决
HarmonyOS flutter build hap --debug编译失败
1356浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
1394浏览 • 1回复 待解决
HarmonyOS flutter版本过低
956浏览 • 1回复 待解决
HarmonyOS 引入har编译失败
1414浏览 • 1回复 待解决
HarmonyOS flutter如何适配折叠屏
1434浏览 • 1回复 待解决
flutter适配HarmonyOS图片压缩
1140浏览 • 1回复 待解决
HarmonyOS flutter框架url_launcher适配
1102浏览 • 1回复 待解决
HarmonyOS flutter三方plugin适配进展
1052浏览 • 1回复 待解决
flutter HarmoneyOS 版本 SDK 安装指导
1476浏览 • 1回复 待解决
HarmonyOS XCode 15.3无法编译flutter engine
871浏览 • 1回复 待解决
HarmonyOS flutter_keyboard_visibility适配了吗
1103浏览 • 1回复 待解决
HarmonyOS flutter video_player库适配了吗
1784浏览 • 1回复 待解决