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 
HarmonyOS
1天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
FengTianYa

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

分享
微博
QQ
微信
回复
1天前
相关问题
HarmonyOS 使用flutter创建packages时报错
41浏览 • 1回复 待解决
HarmonyOS 运行Flutter项目崩溃
36浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
31浏览 • 1回复 待解决
rn HarmonyOS运行demo
30浏览 • 1回复 待解决
HarmonyOS webview_flutter报错
73浏览 • 1回复 待解决
HarmonyOS Flutter run指令报错
27浏览 • 1回复 待解决
HarmonyOS 项目接入flutter后无法运行
65浏览 • 1回复 待解决
HarmonyOS NDK 运行编译报错
56浏览 • 1回复 待解决
HarmonyOS 运行HmosWorld时报错
240浏览 • 1回复 待解决
flutter url_launcher在HarmonyOS报错
37浏览 • 1回复 待解决
HarmonyOS flutter plugin引用时git报错
46浏览 • 1回复 待解决
@ohos/smartrefreshlayout运行报错
397浏览 • 1回复 待解决
HarmonyOS 运行报错,内存不足
630浏览 • 1回复 待解决
HarmonyOS 视频编码surface模式运行报错
365浏览 • 1回复 待解决
HarmonyOS asset运行add方法时报错
361浏览 • 1回复 待解决
HarmonyOS 集成RN 5.0.0.100 后运行报错
390浏览 • 1回复 待解决
运行flutter doctor -v后显示错误代码
1091浏览 • 1回复 待解决
运行时AOP插桩demo测试
1021浏览 • 1回复 待解决