无法从命令行启动android仿真器 [英] Can not start android emulator from command line

查看:128
本文介绍了无法从命令行启动android仿真器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 7,Android Studio 2.3

Windows 7, Android Studio 2.3

我有3个模拟器。一切成功都始于Android Studio。

I has 3 emulators. And all success start from Android Studio.

但我想从命令行启动它们。
所以我的步骤(从命令行):

But I want to start them from command line. So my steps (from command lines):


  1. 模拟器-list-avds
  2. >
  1. emulator -list-avds

成功显示我所有的模拟器:

Success show all my emulators:


  1. Nexus_3_7_API_17_ver_4_2_1

  2. Nexus_3_7_hdpi_API_24_7_0

  3. Nexus_5_96_xxhdpi_API_24_7_0

所以我想开始其中之一:

So I want to start one of them:

仿真器-avd Nexus_3_7_API_17_ver_4_2_1

但是我收到错误消息:

[8648]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ..\emulator\lib64\qt\lib
Could not launch '..\emulator/qemu/windows-x86_64/qemu-system-i386.exe': No such file or directory


推荐答案

我遇到了完全相同的问题,并且正在使用解决方法。让我解释一下:

I had the exact same issue and I am using a workaround. Let me explain:

模拟器中有一个错误,无法找到相对路径

There is a 'bug' in emulator that is not able to find the relative path

..\emulator\lib64\qt\lib

太棒了,因为它很容易修复...无论如何。

Incredibly awesome since this is so simple to fix... whatever.

只需cd到c:\path\to\your\android- sdks\emulator,通常类似于

Just cd to c:\path\to\your\android-sdks\emulator, typically something like

cd c:\Users\userName\android-sdks\emulator

然后,在此目录中,运行所需的任何仿真器命令您的命令:

then, in this directory, run any emulator command you want, for instance your command:

emulator.exe -avd Nexus_3_7_API_17_ver_4_2_1

在您的终端中看起来像这样:

in your teminal this will look like this:

c:\Users\userName\android-sdks\emulator> emulator.exe -avd Nexus_3_7_API_17_ver_4_2_1

,它将正常工作。

这篇关于无法从命令行启动android仿真器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆