LoginSignup
9
5

More than 5 years have passed since last update.

Android Studioのエミュレータをコマンドプロンプトから実行したい

Last updated at Posted at 2017-05-10

AndroidのエミュレータにProxyとか設定したくて、コマンドプロンプト(やAndroid StudioのTerminal)から実行したいのですよ。
ところがよく分からないエラーが出てしまうのです。

エラー!
> emulator @Nexus_5_API_22
[8920]: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

どうもAndroid SDKに複数エミュレータが入ってしまっていて、ダメなemulatorを起動しているみたい。

emulatorの場所
> echo %ANDROID_HOME%
C:\Android\android-sdk

> where /R %ANDROID_HOME% emulator.exe
C:\Android\android-sdk\emulator\emulator.exe
C:\Android\android-sdk\tools\emulator.exe

> where emulator
C:\Android\android-sdk\tools\emulator.exe

別のほうのエミュレータを直接叩いたらうまく起動できました。

違う方を実行
> %ANDROID_HOME%\emulator\emulator @Nexus_5_API_22
9
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
5