华为Harmony开发工具DevEco Studio没有Device问题

2,539 阅读1分钟

华为Harmony开发工具DevEco Studio没有Device问题

遇到问题

安装好DevEco之后,创建代码。发现无法运行代码。始终报select a device first。即便连接物理设备和虚拟设备,DevEco上都没有设备选项这个框。如下图 image.png 在网上看到其他人的页面都有Device这个选项框。如下图

image.png

原因

是设置有问题,这里有两个解决方案。

  1. 在运行设备中选择设备
  2. 自定义Toolbar,将选择设备,添加到Toolbar中

在运行设备中选择设备

Step1

image.png

Step2

image.png

自定义Toolbar,将选择设备,添加到Toolbar中

Step1

image.png

Step2

image.png

Step3

image.png

Step4

image.png

Step5

image.png

结论

至此,解决了,没有Device设备问题。帮到您了,就帮忙点个喜欢。辛苦啦~