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
相关推荐
Ruannn(努力版)2 小时前
Academic writing
笔记
_Narcissus_2 小时前
链表算法题和静态链表
数据结构·c++·笔记·算法·链表·ai·力扣
九硕智慧建筑一体化厂家3 小时前
大型建筑集群智慧管控升级!IBMS系统实现多系统一体化融合管理
运维·人工智能·笔记·智慧城市
深蓝海拓3 小时前
基于QtPy (PySide6) 的PLC-HMI工程实战记录(五)为当前动作画面的信号连接变量
网络·笔记·python·学习·pyqt
摇滚侠3 小时前
《SpringBoot 3:入门与应用实战》第 6 章 Spring Boot 最佳实践 阅读笔记 10
java·spring boot·笔记
疯狂打码的少年4 小时前
【数据结构】八大排序算法对比总结(时间/空间/稳定性)
数据结构·笔记·算法
selia10784 小时前
AI手撕代码笔记
人工智能·笔记·深度学习
一只旭宝4 小时前
预约系统版本2(pyhton+flask可视化版本)
服务器·数据库·c++·笔记·python·flask
蒲锘4 小时前
DevOps 实验项目笔记三 —— Kubernetes 集群部署阶段
笔记·kubernetes·devops·rbac