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的最新版本
255浏览 • 1回复 待解决
HarmonyOS @ohos/mmkv 怎么更新到最新版本
1041浏览 • 1回复 待解决
HarmonyOS 升级新版本flutter运行报错
153浏览 • 1回复 待解决
HarmonyOS赋能Flutter引入适配版本的flutter_inappwebview编译失败
234浏览 • 1回复 待解决
HarmonyOS 最新版flutter SDK在HarmonyOS上键盘弹起页面被顶起显示异常
264浏览 • 1回复 待解决
HarmonyOS flutter_flutter项目进展
250浏览 • 1回复 待解决
HarmonyOS flutter使用shared_preferences,编译失败
180浏览 • 1回复 待解决
HarmonyOS flutter_webview重定向无法返回
117浏览 • 1回复 待解决
HarmonyOS OpenHarmony-SIG / flutter_flutter三方库webview_flutter报错
390浏览 • 1回复 待解决
HarmonyOS flutter build hap --debug编译失败
156浏览 • 1回复 待解决
DevEco Studio 安装新版本安装SDK报错,尝试npm缓存但是失败了
6352浏览 • 1回复 已解决
HarmonyOS flutter_flutter开发环境搭建问题
263浏览 • 1回复 待解决
目前鸿蒙手机最新版本是多少?
7463浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
376浏览 • 1回复 待解决
HarmonyOS flutter_flutter必须使用API12环境吗?API11下开发该怎么做?
330浏览 • 1回复 待解决
HarmonyOS 是否有检查当前应用在应用商店的最新版本api
342浏览 • 1回复 待解决
ohpm 获取指定仓库指定包的最新版本号
534浏览 • 1回复 待解决
HarmonyOS flutter框架,使用webview_flutter包,js如何和webview_flutter通讯
117浏览 • 1回复 待解决
flutter HarmoneyOS 版本的 SDK 安装指导
594浏览 • 1回复 待解决
新版本的编辑器sdk怎么没有了
298浏览 • 1回复 待解决
HarmonyOS XCode 15.3无法编译flutter engine
339浏览 • 1回复 待解决
请问鸿蒙最新版本是多少?我的是nova8
11370浏览 • 1回复 待解决
HarmonyOS 关于flutter项目编译多plugin工程,编译慢的问题
1025浏览 • 1回复 待解决
HarmonyOS 使用编译器run打开flutter页面闪退
378浏览 • 1回复 待解决
HarmonyOS 配置视频编码器,手机升级到最新版本提示参数非法
440浏览 • 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后再运行。