OpenHamony开发笔记一:在HarmonyOS虚拟机上运行openharmony工程

本文介绍了在HarmonyOS的虚拟机上运行openharmony工程时,需要修改build-profile.json文件中的runtimeOS设置,并将工程引用的SDK从openharmonysdk切换到HuaweiSDK的相关步骤。
摘要由CSDN通过智能技术生成

在HarmonyOS的虚拟机上要运行openharmony的工程时需要修改的地方有

1.修改build-profile.json5,将runtimeOS改为HarmonyOS

  "targets": [
    {
      "name": "default",
      "runtimeOS": "HarmonyOS"
    },

2.修改工程引用的SDK,在文件local.properties上将sdk.dir的openharmony sdk改为hwsdk.dir的HarmonyOS的sdk

# This file is automatically generated by DevEco Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file should *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# For customization when using a Version Control System, please read the header note.
#sdk.dir=C:/Users/pang/AppData/Local/OpenHarmony/Sdk
hwsdk.dir=C:/Users/pang/AppData/Local/Huawei/Sdk
nodejs.dir=C:/Users/pang/nodejs

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值