HarmonyOS 使用SDK 12编译,同时更新了flutter_flutter最新版本、引擎,但是flutter_webview编译失败
报错:
1 ERROR: ArkTS:ERROR File:
/Users/xxxxx/.pub-cache/git/ohos_flutter_packages-b615f80433c1724d467e3a63f7861855e8144a99/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_f
lutter/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/ohos_flutter_packages-b615f80433c1724d467e3a63f7861855e8144a99/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_f
lutter/WebViewHostApiImpl.ets:16:24
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?
3 ERROR: ArkTS:ERROR File:
/Users/xxxxx/.pub-cache/git/ohos_flutter_packages-b615f80433c1724d467e3a63f7861855e8144a99/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_f
lutter/WebViewHostApiImpl.ets:431: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
赞
收藏 0
回答 1
待解决
相关问题
HarmonyOS 如何编译一个全量的ffmpeg sdk适配HarmonyOS的最新版本
39浏览 • 1回复 待解决
HarmonyOS @ohos/mmkv 怎么更新到最新版本
690浏览 • 1回复 待解决
HarmonyOS 最新版flutter SDK在HarmonyOS上键盘弹起页面被顶起显示异常
48浏览 • 1回复 待解决
DevEco Studio 安装新版本安装SDK报错,尝试npm缓存但是失败了
6098浏览 • 1回复 已解决
目前鸿蒙手机最新版本是多少?
7121浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
23浏览 • 1回复 待解决
HarmonyOS flutter_flutter开发环境搭建问题
28浏览 • 1回复 待解决
HarmonyOS flutter_flutter必须使用API12环境吗?API11下开发该怎么做?
38浏览 • 1回复 待解决
flutter HarmoneyOS 版本的 SDK 安装指导
281浏览 • 1回复 待解决
HarmonyOS XCode 15.3无法编译flutter engine
89浏览 • 1回复 待解决
ohpm 获取指定仓库指定包的最新版本号
255浏览 • 1回复 待解决
新版本的编辑器sdk怎么没有了
146浏览 • 1回复 待解决
HarmonyOS 是否有检查当前应用在应用商店的最新版本api
10浏览 • 1回复 待解决
HarmonyOS 使用编译器run打开flutter页面闪退
29浏览 • 1回复 待解决
HarmonyOS 关于flutter项目编译多plugin工程,编译慢的问题
657浏览 • 1回复 待解决
请问鸿蒙最新版本是多少?我的是nova8
11072浏览 • 1回复 待解决
HarmonyOS Flutter版本适配问题
43浏览 • 1回复 待解决
HarmonyOS 配置视频编码器,手机升级到最新版本提示参数非法
230浏览 • 1回复 待解决
HarmonyOS flutter webview如何调试
106浏览 • 1回复 待解决
Flutter SDK支持HarmonyOS Next
1558浏览 • 1回复 待解决
HarmonyOS工程导入flutter module编译出的har包,使用FlutterEntry进入指定flutter 页面,会导致flutter module又启动一次
19浏览 • 1回复 待解决
HarmonyOS flutter引擎中如何支持 PlatformView
88浏览 • 1回复 待解决
HarmonyOS SDK 12flutter插件中ohos模块单独打开无法识别与开发
30浏览 • 1回复 待解决
可以尝试如下步骤:
1.需要把flutter升级到dev的最新版本,IDE、SDK等都需要升级到最新,使用API12。
2.清除项目缓存,先找到编译产物的地址,删掉.har。
3.环境变量 FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn。
4.删除<flutter>/bin/cache 目录,并在项目中执行flutter clean后再运行。