HarmonyOS 执行Flutter build hap,报错hvigor ERROR: Cause: The SDK license agreement is not accepted

执行flutter build hap报错如下:

hvigor ERROR: Cause: The SDK license agreement is not accepted.
Solution:
If you are in DevEco Studio, open SDK Manager, go to SDK > HarmonyOS, and re-download the HarmonyOS NEXT Developer Preview2 SDK. Accept the license agreement when prompted.
If you are using a pipeline, re-download the HarmonyOS NEXT Developer Preview2 SDK with a command line tool. Accept the license agreement when prompted.
hvigor ERROR: BUILD FAILED in 26 s 372 ms

操作步骤:

1、flutter create --platforms ohos flutter_test_project

2、flutter build hap --target-platform ohos-arm64 --release --local-engine=D:\Harmony\flutter_engine\ohos_release_arm64\src\out\ohos_release_arm64 -v

HarmonyOS
6天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
superinsect

需要配置DEVECO_SDK_HOME环境变量参考链接:https://gitee.com/openharmony-sig/flutter_flutter/tree/dev/

分享
微博
QQ
微信
回复
6天前
相关问题
HarmonyOS flutter build报错
115浏览 • 1回复 待解决
报错Error while Deploying HAP
12662浏览 • 2回复 待解决
flutter build hap 失败(mac intel i5)
1320浏览 • 1回复 待解决
编译构建报错,提示CONFIGURE_SDK_ERROR
889浏览 • 1回复 待解决
Flutter SDK支持HarmonyOS Next
1672浏览 • 1回复 待解决
Build Output文件报错
8534浏览 • 1回复 待解决