HarmonyOS flutter build报错
操作步骤:flutter build hap --local-engine ~/ohos/src/out/ohos_debug_unopt_arm64 --debug报错:
> hvigor ERROR: Cause: The SDK license agreement is not accepted.
Solution:
1. 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.
2. 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 4 s 182 ms
error! when invoke: /Users/long/application/ohos/hvigorw clean assembleHap
--no-daemon ,exitCode = 255.
assembleHap error! please check log.
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
HarmonyOS flutter build har出问题,看报错来自ohos库
154浏览 • 1回复 待解决
HarmonyOS 执行Flutter build hap,报错hvigor ERROR: Cause: The SDK license agreement is not accepted
155浏览 • 1回复 待解决
Build Output文件报错
8563浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
175浏览 • 1回复 待解决
HarmonyOS webview_flutter报错
238浏览 • 1回复 待解决
HarmonyOS Flutter run指令报错
168浏览 • 1回复 待解决
HarmonyOS接入Flutter产物后,HarmonyOS与flutter交互报错
190浏览 • 1回复 待解决
flutter build hap 失败(mac intel i5)
1346浏览 • 1回复 待解决
build app 报错 Components state is illegal!
7457浏览 • 1回复 待解决
HarmonyOS 交叉编译报错,执行./build.sh GMLibDecoder指令报错
133浏览 • 1回复 待解决
HarmonyOS 创建Flutter demo运行报错
196浏览 • 1回复 待解决
HarmonyOS OpenHarmony-SIG / flutter_flutter三方库webview_flutter报错
169浏览 • 1回复 待解决
HarmonyOS flutter plugin引用时git报错
194浏览 • 1回复 待解决
HarmonyOS 使用flutter创建packages时报错
137浏览 • 1回复 待解决
flutter url_launcher在HarmonyOS报错
193浏览 • 1回复 待解决
HarmonyOS flutter Plugin权限申请报错9568289
234浏览 • 1回复 待解决
输入python build.py wifiiot报错怎么解决
10019浏览 • 1回复 待解决
DevEco编译教程里的demo工程时,build报错!
11669浏览 • 3回复 待解决
打开项目报错:Incorrect settings found in the build-profile.json5 file
2101浏览 • 1回复 待解决
BUILD.gn引用第三方so文件报错undefined symbol
4650浏览 • 0回复 待解决
HarmonyOS flutter_flutter项目进展
107浏览 • 1回复 待解决
BuildProfile自定义字段报错:Property 'BUILD_VERSION' does not exist on type 'typeof BuildProfile'
839浏览 • 1回复 待解决
HarmonyOS 项目使用Migrate Assistant自动迁移完成后,运行flutter项目报错
125浏览 • 1回复 待解决
HarmonyOS 如何build har包
112浏览 • 1回复 待解决
根据提供的操作步骤,报错是The SDK license agreement is not accepted。
可以参考执行以下命令后再次编译:
参考文档:https://gitee.com/openharmony-sig/flutter_flutter#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98
请参考文档配置环境变量:
参考文档:https://gitee.com/openharmony-sig/flutter_flutter/tree/dev/#%E7%8E%AF%E5%A2%83%E4%BE%9D%E8%B5%96