Android 未指定模拟器
Android emulator not specified
尝试从模拟器运行 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 中运行良好。
在这种情况下,在 PowerShell 中找到启动名为 "Pixel_2_64" 的 AVD 的解决方案:
使用:
emulator -avd Pixel_2_64
或:
emulator "@Pixel_2_64"
必须使用引号或使用 avd 标志。
感谢@mklement0 提供...的解释
@
is used for argument splatting in PowerShell, hence the need for quoting; alternatively, you could have `
-escaped the @ (emulator `@Pixel_2_64
)
尝试从模拟器运行 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 中运行良好。
在这种情况下,在 PowerShell 中找到启动名为 "Pixel_2_64" 的 AVD 的解决方案:
使用:
emulator -avd Pixel_2_64
或:
emulator "@Pixel_2_64"
必须使用引号或使用 avd 标志。
感谢@mklement0 提供...的解释
@
is used for argument splatting in PowerShell, hence the need for quoting; alternatively, you could have`
-escaped the @ (emulator `@Pixel_2_64
)