如何在 Ubuntu 下从命令行启动 Android 模拟器,而无需 Android Studio 运行?
How to launch Android emulator from command line under Ubuntu, without having Android Studio running?
当 IDE Android Studio 为 运行 时,从 Ubuntu 下的命令行启动 Android 模拟器非常容易。我的情况,我只是发出:
$HOME/Android/Sdk/emulator/qemu/linux-x86_64/qemu-system-i386 -avd My_Galaxy_Nexus
但是当 IDE 不是 运行 时,这会失败。我收到下一条错误消息(以及我认为可以忽略的警告):
emulator: WARNING: encryption is off
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix this problem.
Aborted (core dumped)
我想这是因为 Android Studio IDE 正在创建一个环境并加载库(Qt 平台),我在启动模拟器时缺少这些库(Qt 平台)作为独立的.
由于 IDE 在我的笔记本电脑上消耗资源非常多,我宁愿只启动模拟器,因为这对我来说是一个有用的方式来拥有 WhatsApp 运行 而无需Android 或 Mac 智能手机。
我的问题是:如何将模拟器作为独立应用启动?
QT 平台错误可能是因为您 运行 您的命令不在 "tools" 目录中。
对于 whatsapp,如果您真的不需要开发任何东西,您可以随时使用 genymotion 或 nox 模拟器。
当 IDE Android Studio 为 运行 时,从 Ubuntu 下的命令行启动 Android 模拟器非常容易。我的情况,我只是发出:
$HOME/Android/Sdk/emulator/qemu/linux-x86_64/qemu-system-i386 -avd My_Galaxy_Nexus
但是当 IDE 不是 运行 时,这会失败。我收到下一条错误消息(以及我认为可以忽略的警告):
emulator: WARNING: encryption is off
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix this problem.
Aborted (core dumped)
我想这是因为 Android Studio IDE 正在创建一个环境并加载库(Qt 平台),我在启动模拟器时缺少这些库(Qt 平台)作为独立的.
由于 IDE 在我的笔记本电脑上消耗资源非常多,我宁愿只启动模拟器,因为这对我来说是一个有用的方式来拥有 WhatsApp 运行 而无需Android 或 Mac 智能手机。
我的问题是:如何将模拟器作为独立应用启动?
QT 平台错误可能是因为您 运行 您的命令不在 "tools" 目录中。
对于 whatsapp,如果您真的不需要开发任何东西,您可以随时使用 genymotion 或 nox 模拟器。