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

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

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

bash 复制代码
  "targets": [
    {
      "name": "default",
      "runtimeOS": "HarmonyOS"
    },

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

bash 复制代码
# 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
相关推荐
dr_yingli1 天前
慢性肾脏病评估与管理临床实践指南 KDIGO 2024 CKD 诊断指标速查手册
笔记
OBiO20131 天前
从单细胞多组学到体内验证:器官纤维化与代谢疾病的研究新范式
笔记·学习
小清兔1 天前
Addressable的设置打包流程
笔记·游戏·unity·c#
Tutankaaa1 天前
知识竞赛计分如何确保绝对准确?双机热备方案详解与实施要点
笔记·学习·职场和发展
qq_429499571 天前
RK3566 linux编译成功笔记
笔记
Purple Coder1 天前
项目一支撑文档阅读笔记-《Handbook on Battery Energy Storage System》
笔记
宵时待雨1 天前
linux笔记归纳4:进程概念
linux·运维·服务器·c++·笔记
jinyuya1 天前
[UVM] uvm_reg学习
笔记
magic_now1 天前
FAT文件系统:嵌入式设备的极简选择
笔记·嵌入式硬件
Hammer_Hans1 天前
DFT笔记45
java·jvm·笔记