我可以用与Code连接华为Harmonyos模拟器吗?
我正在开发带有VS代码的移动应用程序,我的手机在华为操作系统(Harmony OS)上启动。我可以将它们连接并在手机上启动应用吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我正在开发带有VS代码的移动应用程序,我的手机在华为操作系统(Harmony OS)上启动。我可以将它们连接并在手机上启动应用吗?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
Harmonyos支持本地C ++用于应用程序开发。如果您使用华为Deveco Studio IDE使用C ++代码开发Harmonyos应用程序,则可以将其安装在华为Harmonyos手机上。另一方面,如果您开发了一个带有Visual Studio IDE的应用程序,则无法在华为手机上启动。
您可以在。
HarmonyOS supports Native C++ for app development. If you use Huawei DevEco Studio IDE to develop a HarmonyOS app using C++ code, it can be installed on Huawei HarmonyOS phone. On the other hand, if you develop an app with Visual Studio IDE, it can't be launched on Huawei phone.
You can find the detail of DevEco Studio for HarmonyOS app development at https://developer.harmonyos.com/en/docs/documentation/doc-guides/tools_overview-0000001053582387.
使用IDE,同样 android Studio 或 deveco Studio ,取决于这是Android或Harmonyos SDK应用程序;还有这些“ Lite”应用程序,您可能会指的是(目前只能在本地模拟这些应用程序)。
可以在vs.code中配置外部工具,但这是一种“错误的工具”,因为它缺少Harmonyos SDK,ADB/HDB(USB调试),最重要的是,
对于Android Studio,还有一个 hms toolkit Lite)。简而言之:无论如何您都必须安装Deveco Studio;只有这样,您才有机会通过CLI脚本 /或一些插件来构建和运行此类“混合” Lite应用程序。
Use an IDE, alike Android Studio or DevEco Studio, depending if this is an Android or HarmonyOS SDK app; there's also these "Lite" apps, which you may be referring to (currently only these can be emulated locally).
It's possible to configure external tools in VS.Code, but it's kind of "the wrong tool", because it lacks the HarmonyOS SDK, ADB/HDB (USB debugging) and most importantly, the emulator (Lite) - and
logcat
output also would need to be piped into the output window. OHOS only runs Android packages in compatibility mode, if I understood this correctly (but it runs both).For Android Studio there's also a HMS Toolkit plugin for connecting remote emulators (not Lite). In short: you'd have to install DevEco Studio anyway; only then you'd have a chance of building and running such "hybrid" Lite app from VS.Code, via CLI scripting / or some plugin.