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
赞
收藏 0
回答 1
待解决
相关问题
执行Flutter构建是提示The SDK license agreement is not accepted
521浏览 • 1回复 待解决
HarmonyOS flutter build报错
115浏览 • 1回复 待解决
编译报错hvigor ERROR: Error, Schema validate failed
1536浏览 • 1回复 待解决
编译报错:hvigor ERROR: Error, Schema validate failed.
2829浏览 • 1回复 待解决
报错:Error while Deploying HAP。
12662浏览 • 2回复 待解决
flutter build hap 失败(mac intel i5)
1320浏览 • 1回复 待解决
HarmonyOS 交叉编译报错,执行./build.sh GMLibDecoder指令报错
90浏览 • 1回复 待解决
编译构建报错,提示CONFIGURE_SDK_ERROR
889浏览 • 1回复 待解决
HarmonyOS flutter build har出问题,看报错来自ohos库
112浏览 • 1回复 待解决
OpenHarmony安装hap报错:error: install releaseType not same
3798浏览 • 1回复 待解决
升级IDE后编译报错:hvigor ERROR: Error: TypeError, Cannot read properties of undefined (reading 'getParameter
447浏览 • 1回复 待解决
报错error: install failed due to grant request permissions failed Error while Deploy Hap
2303浏览 • 0回复 待解决
hvigor ERROR: project.getModuleDir is not a function
3139浏览 • 1回复 待解决
HarmonyOS 项目sync报错Error: The hvigor depends on the npmrc file. Configure the npmrc file first.
209浏览 • 1回复 待解决
HarmonyOS hvigor 自定义脚本中发现hvigor.nodesInitialized 不执行
90浏览 • 1回复 待解决
运行Native HAP,报错提示:install parse profile prop check error
2490浏览 • 1回复 待解决
Flutter SDK支持HarmonyOS Next
1672浏览 • 1回复 待解决
编译构建异常提示hvigor ERROR: Invalid version
3344浏览 • 1回复 待解决
Build Output文件报错
8534浏览 • 1回复 待解决
需要配置DEVECO_SDK_HOME环境变量参考链接:https://gitee.com/openharmony-sig/flutter_flutter/tree/dev/