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
1343浏览 • 1回复 待解决
HarmonyOS flutter build报错
1540浏览 • 1回复 待解决
HarmonyOS flutter build hap --debug编译失败
1395浏览 • 1回复 待解决
编译报错hvigor ERROR: Error, Schema validate failed
2707浏览 • 1回复 待解决
编译报错:hvigor ERROR: Error, Schema validate failed.
5363浏览 • 1回复 待解决
报错:Error while Deploying HAP。
14782浏览 • 2回复 待解决
flutter build hap 失败(mac intel i5)
2427浏览 • 1回复 待解决
HarmonyOS 交叉编译报错,执行./build.sh GMLibDecoder指令报错
1099浏览 • 1回复 待解决
编译构建报错,提示CONFIGURE_SDK_ERROR
1876浏览 • 1回复 待解决
OpenHarmony安装hap报错:error: install releaseType not same
5268浏览 • 1回复 待解决
升级IDE后编译报错:hvigor ERROR: Error: TypeError, Cannot read properties of undefined (reading 'getParameter
2599浏览 • 1回复 待解决
HarmonyOS flutter build har出问题,看报错来自ohos库
1233浏览 • 1回复 待解决
Tabs的具体使用方法,我这个报错The variable with @Link in component with @Preview may cause error in
751浏览 • 1回复 已解决
报错error: install failed due to grant request permissions failed Error while Deploy Hap
3267浏览 • 0回复 待解决
HarmonyOS flutter build har fail
1041浏览 • 1回复 待解决
hvigor ERROR: project.getModuleDir is not a function
4610浏览 • 2回复 待解决
HarmonyOS Flutter在pubspec.yaml添加webview_flutter后执行flutter pub get报错了
1346浏览 • 1回复 待解决
hvigor ERROR: Error, Cannot find module '@ohos/hvigor-ohos-plugin/src/utils/log/log-adaptor'
1258浏览 • 0回复 待解决
HarmonyOS 项目sync报错Error: The hvigor depends on the npmrc file. Configure the npmrc file first.
1393浏览 • 1回复 待解决
Flutter SDK支持HarmonyOS Next
2659浏览 • 1回复 待解决
HarmonyOS hvigor 自定义脚本中发现hvigor.nodesInitialized 不执行
875浏览 • 1回复 待解决
需要配置DEVECO_SDK_HOME环境变量参考链接:https://gitee.com/openharmony-sig/flutter_flutter/tree/dev/