当前位置:   article > 正文

OpenHamony开发笔记一:在HarmonyOS虚拟机上运行openharmony工程_openharmony应用不能运行在虚拟机吗

openharmony应用不能运行在虚拟机吗

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

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

  1. "targets": [
  2. {
  3. "name": "default",
  4. "runtimeOS": "HarmonyOS"
  5. },

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/271180
推荐阅读
相关标签
  

闽ICP备14008679号