Flutter开发HarmonyOS鸿蒙Next应用的时候打包构建报错如何解决
Flutter开发HarmonyOS鸿蒙Next应用的时候打包构建报错如何解决
hvigor ERROR: Failed :entry:default@CompileArkTS…
hvigor ERROR: ArkTs Compiler Error ERROR: ArkTS:ERROR File: F:/flutter_harmoney/harmony_demo/ohos/entry/src/main/ets/entryability/EntryAbility.ets:16:32 Cannot find module ‘@ohos/flutter_ohos’ or its corresponding type declarations.
ERROR: ArkTS:ERROR File: F:/flutter_harmoney/harmony_demo/ohos/entry/src/main/ets/entryability/EntryAbility.ets:17:31 Cannot find module ‘@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/FlutterPlugin’ or its corresponding type declarations.
ERROR: ArkTS:ERROR File: F:/flutter_harmoney/harmony_demo/ohos/entry/src/main/ets/entryability/EntryAbility.ets:20:27 Cannot find module ‘@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine’ or its corresponding type declarations.
ERROR: ArkTS:ERROR File: F:/flutter_harmoney/harmony_demo/ohos/entry/src/main/ets/entryability/EntryAbility.ets:27:12 Property ‘addPlugin’ does not exist on type ‘EntryAbility’.
ERROR: ArkTS:ERROR File: F:/flutter_harmoney/harmony_demo/ohos/entry/src/main/ets/pages/Index.ets:17:29 Cannot find module ‘@ohos/flutter_ohos’ or its corresponding type declarations.
ERROR: ArkTS:ERROR File: F:/flutter_harmoney/harmony_demo/ohos/entry/src/main/ets/pages/Index.ets:19:28 Property ‘getShared’ does not exist on type ‘typeof LocalStorage’. Did you mean ‘GetShared’?
ERROR: ArkTS:ERROR File: F:/flutter_harmoney/harmony_demo/ohos/entry/src/main/ets/plugins/GeneratedPluginRegistrant.ets:1:31 Cannot find module ‘@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/FlutterPlugin’ or its corresponding type declarations.
ERROR: ArkTS:ERROR File: F:/flutter_harmoney/harmony_demo/ohos/entry/src/main/ets/pages/Index.ets:30:7 ‘FlutterPage({ viewId: this.viewId })’ does not meet UI component syntax. COMPILE RESULT:FAIL {ERROR:9}
hvigor ERROR: BUILD FAILED in 2 s 655 ms
更多关于Flutter开发HarmonyOS鸿蒙Next应用的时候打包构建报错如何解决的实战教程也可以访问 https://www.itying.com/category-92-b0.html