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
相关推荐
Junlan279 小时前
Cursor使用入门及连接服务器方法(更新中)
服务器·人工智能·笔记
risc12345610 小时前
如何认识结构?结构 = 要素 + 关系 + 动态
笔记
風清掦10 小时前
【江科大STM32学习笔记-05】EXTI外部中断11
笔记·stm32·学习
wdfk_prog10 小时前
[Linux]学习笔记系列 -- [drivers][tty]sysrq
linux·笔记·学习
QT.qtqtqtqtqt11 小时前
uni-app小程序前端开发笔记(更新中)
前端·笔记·小程序·uni-app
EmbedLinX11 小时前
嵌入式之协议解析
linux·网络·c++·笔记·学习
凉、介11 小时前
VMware 三种网络模式(桥接 / NAT / Host-Only)原理与实验解析
c语言·网络·笔记·操作系统·嵌入式·vmware
Aliex_git11 小时前
跨域请求笔记
前端·网络·笔记·学习
2501_9011478311 小时前
面试必看:优势洗牌
笔记·学习·算法·面试·职场和发展
Yu_Lijing12 小时前
网络复习篇——网络基础(一)
网络·c++·笔记