• Lv3
    粉丝0

积分2 / 贡献0

提问1答案被采纳0文章0

作者动态

    OpenHarmony5.0.2应用源码编译报错

    爱民 显示全部楼层 发表于 6 天前

    【问题描述】

    1. 使用命令. build.sh --project=/data/bruce.li/share/OpenHarmony/applications/standard/screenlock编译报错
    2. 报错关键信息

    hvigor CPU Architecture: x86_64

    hvigor ERROR: Cause: Unable to find the following components: toolchains:12 Solution: 1.Go to Tools > SDK Manager > SDK > OpenHarmony, download the components, and sync the project. Open SDK Manager 2.Alternatively, modify the compileSdkVersion settings in the project-level build-profile.json5 file. hvigor ERROR: BUILD FAILED in 5 s 73 ms

    【运行环境】

    硬件:RK3568 ROM版本: DevEvoStudio版本: SDK版本:5.0.2

    您尚未登录,无法参与评论,登录后可以:
    参与开源共建问题交流
    认同或收藏高质量问答
    获取积分成为开源共建先驱

    精彩评论1

    onefan

    沙发 发表于 5 天前
    5.0.2(api14)分支没有包含编译screenlock使用的sdk,起码是api12
            "compileSdkVersion": 10,
            "compatibleSdkVersion": 9,
    需要调整为
            "compatibleSdkVersion": 12,
            "compileSdkVersion": 12,
            "targetSdkVersion": 12

    Copyright   ©2025  OpenHarmony开发者论坛  京ICP备2020036654号-3 | 京公网安备11030102011662号 |技术支持 Discuz!

    返回顶部