模拟器启动器地址:C:\Program Files (x86)\Microsoft Emulator Manager\1.0\emulatorcmd.exe 获取模拟器ID命令:emulatorcmd.exe /sku:android list /type:device

第一步:Run -> Debug Configurations...  ->  Android Application, 选中“Always prompt to pick device”,点击 "Apply"。

第二步:Run -> External Tools -> External Tools Configurations...    在 "Program" 里新建一个配置, 起个名字,把上面的 “模拟器启动位置”填写到Location中 ,然后在“运行”中执行执行"cmd",然后输入上面的“获取模拟器ID命令”,结果中第一列就是ID。 在底下的“自变量”中输入类似“/sku:Android launch /id:3207E9FF-43A9-4D76-890A-8C585C4D88E0”内容。

大功靠成。

相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2021-10-03
  • 2021-10-04
  • 2022-12-23
  • 2021-12-28
猜你喜欢
  • 2021-05-26
  • 2021-08-23
  • 2021-11-08
  • 2021-06-25
  • 2022-12-23
  • 2021-06-17
  • 2021-10-28
相关资源
相似解决方案