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.
- 2.
- 3.
- 4.
- 5.
操作步骤:
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
赞
收藏 0
回答 1
相关问题
执行Flutter构建是提示The SDK license agreement is not accepted
1121浏览 • 1回复 待解决
HarmonyOS flutter build报错
1147浏览 • 1回复 待解决
HarmonyOS flutter build hap --debug编译失败
943浏览 • 1回复 待解决
编译报错hvigor ERROR: Error, Schema validate failed
2264浏览 • 1回复 待解决
编译报错:hvigor ERROR: Error, Schema validate failed.
4239浏览 • 1回复 待解决
报错:Error while Deploying HAP。
13601浏览 • 2回复 待解决
flutter build hap 失败(mac intel i5)
2212浏览 • 1回复 待解决
HarmonyOS 交叉编译报错,执行./build.sh GMLibDecoder指令报错
875浏览 • 1回复 待解决
编译构建报错,提示CONFIGURE_SDK_ERROR
1618浏览 • 1回复 待解决
HarmonyOS flutter build har出问题,看报错来自ohos库
894浏览 • 1回复 待解决
升级IDE后编译报错:hvigor ERROR: Error: TypeError, Cannot read properties of undefined (reading 'getParameter
1765浏览 • 1回复 待解决
OpenHarmony安装hap报错:error: install releaseType not same
4778浏览 • 1回复 待解决
报错error: install failed due to grant request permissions failed Error while Deploy Hap
2917浏览 • 0回复 待解决
Tabs的具体使用方法,我这个报错The variable with @Link in component with @Preview may cause error in
332浏览 • 1回复 已解决
HarmonyOS flutter build har fail
741浏览 • 1回复 待解决
hvigor ERROR: project.getModuleDir is not a function
4141浏览 • 1回复 待解决
hvigor ERROR: Error, Cannot find module '@ohos/hvigor-ohos-plugin/src/utils/log/log-adaptor'
439浏览 • 0回复 待解决
HarmonyOS 项目sync报错Error: The hvigor depends on the npmrc file. Configure the npmrc file first.
1006浏览 • 1回复 待解决
Flutter SDK支持HarmonyOS Next
2412浏览 • 1回复 待解决
HarmonyOS hvigor 自定义脚本中发现hvigor.nodesInitialized 不执行
668浏览 • 1回复 待解决
需要配置DEVECO_SDK_HOME环境变量参考链接:https://gitee.com/openharmony-sig/flutter_flutter/tree/dev/