操作步骤:
1、flutter build hap --local-engine=/ohos/engine_make_release/src/out/ohos_release_arm64 --release
2、1 ERROR: ArkTS:ERROR File:
/Users/xxx/.pub-cache/git/flutter_packages-4a0e790a6407ce1525bc52adcf1218b0e5e49b10/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/OhosWebView.e
ts: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/xxx/.pub-cache/git/flutter_packages-4a0e790a6407ce1525bc52adcf1218b0e5e49b10/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostAp
iImpl.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/xxx/.pub-cache/git/flutter_packages-4a0e790a6407ce1525bc52adcf1218b0e5e49b10/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostAp
iImpl.ets:428: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.1、flutter build hap --local-engine=/ohos/engine_make_release/src/out/ohos_release_arm64 --release
2、1 ERROR: ArkTS:ERROR File:
/Users/xxx/.pub-cache/git/flutter_packages-4a0e790a6407ce1525bc52adcf1218b0e5e49b10/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/OhosWebView.e
ts: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/xxx/.pub-cache/git/flutter_packages-4a0e790a6407ce1525bc52adcf1218b0e5e49b10/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostAp
iImpl.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/xxx/.pub-cache/git/flutter_packages-4a0e790a6407ce1525bc52adcf1218b0e5e49b10/packages/webview_flutter/webview_flutter_ohos/ohos/src/main/ets/io.flutter.plugins/webview_flutter/WebViewHostAp
iImpl.ets:428: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.
直接使用命令flutter build hap 不要加后面的--local-engine,最新的分支不需要加本地的编译产物了,放在云端了。所以使用--local-engine时,使用的flutter.har还是旧的版本。