【问题标题】:Android emulator not specified未指定 Android 模拟器
【发布时间】:2019-03-24 08:27:26
【问题描述】:

尝试从模拟器运行 AVD 时,使用 PowerShell:

PS C:\android\sdk\emulator> emulator @Pixel_2_64

即使模拟器存在,我也会收到以下错误:

emulator: ERROR: No AVD specified. Use '@foo' or '-avd foo' to launch a virtual device named 'foo'

有什么想法吗?在 CMD 中运行良好。

【问题讨论】:

    标签: android powershell android-emulator avd


    【解决方案1】:

    找到了在这种情况下在 PowerShell 中启动名为“Pixel_2_64”的 AVD 的解决方案:

    使用任一:

    emulator -avd Pixel_2_64
    

    或:

    emulator "@Pixel_2_64"
    

    必须使用引号或使用 avd 标志。

    感谢@mklement0 提供...的解释

    @ 用于 PowerShell 中的argument splatting,因此需要引用;或者,您可以让`-转义@ (emulator `@Pixel_2_64)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多