HarmonyOS 创建Flutter demo运行报错

创建Flutter demo运行报错:

1 ERROR: ArkTS:ERROR File: /Users/xxx/Documents/flutter/test_flutter_harmony/ohos/entry/src/main/ets/plugins/GeneratedPluginRegistrant.ets:1:36
Cannot find module '@ohos/flutter_ohos' or its corresponding type declarations.

2 ERROR: ArkTS:ERROR File: /Users/xxx/Documents/flutter/test_flutter_harmony/ohos/entry/src/main/ets/entryability/EntryAbility.ets:16:47
Cannot find module '@ohos/flutter_ohos' or its corresponding type declarations.

3 ERROR: ArkTS:ERROR File: /Users/xxx/Documents/flutter/test_flutter_harmony/ohos/entry/src/main/ets/pages/Index.ets:17:29
Cannot find module '@ohos/flutter_ohos' or its corresponding type declarations.

4 ERROR: ArkTS:ERROR File: /Users/xxx/Documents/flutter/test_flutter_harmony/ohos/entry/src/main/ets/pages/Index.ets:30:7
'FlutterPage({ viewId: this.viewId })' does not meet UI component syntax.

COMPILE RESULT:FAIL {ERROR:5}
> hvigor ERROR: BUILD FAILED in 7 s 153 ms 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
HarmonyOS
2024-12-25 18:43:47
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
FengTianYa

flutter模拟器只支持ARM架构,不支持X86,请使用真机调试。

分享
微博
QQ
微信
回复
2024-12-25 20:26:01
相关问题
HarmonyOS 使用flutter创建packages时报错
843浏览 • 1回复 待解决
HarmonyOS 升级新版本flutter运行报错
1059浏览 • 1回复 待解决
HarmonyOS 运行Flutter项目崩溃
984浏览 • 1回复 待解决
rn HarmonyOS运行demo
714浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
1035浏览 • 1回复 待解决
HarmonyOS flutter build报错
1163浏览 • 1回复 待解决
HarmonyOS 项目接入flutter后无法运行
950浏览 • 1回复 待解决
HarmonyOS webview_flutter报错
1326浏览 • 1回复 待解决
HarmonyOS Flutter run指令报错
1134浏览 • 1回复 待解决
HarmonyOS IDE运行报错
817浏览 • 1回复 待解决
HarmonyOS 运行HmosWorld时报错
1085浏览 • 1回复 待解决
HarmonyOS NDK 运行编译报错
1277浏览 • 1回复 待解决
HarmonyOS flutter运行在模拟器上白屏
1232浏览 • 1回复 待解决
HarmonyOS flutter Plugin权限申请报错9568289
1164浏览 • 1回复 待解决
flutter url_launcher在HarmonyOS报错
907浏览 • 1回复 待解决
HarmonyOS flutter plugin引用时git报错
1066浏览 • 1回复 待解决
@ohos/smartrefreshlayout运行报错
1170浏览 • 1回复 待解决
@ohos/smartrefreshlayout运行报错
738浏览 • 0回复 待解决
HarmonyOS 运行报错,内存不足
1300浏览 • 1回复 待解决
HarmonyOS DevEco调试Flutter项目时报错
810浏览 • 1回复 待解决