Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not launch './qemu/windows-x86_64/qemu-system-i386.exe': No such file or directory

I followed everything in this link http://ionicframework.com/docs/guide/installation.html and I installed Genymotion in Android Studio... But I'm struggling with the shown error below... Whenever I'm running ionic run android or ionic emulate android:

Running command: "C:\Program Files\nodejs\node.exe" 
C:\Users\t\todo\hooks\after_prepare\010_add_platform_class.js 
C:/Users/t/todo
add to body class: platform-android
Running command: cmd "/s /c "C:\Users\t\todo\platforms\android\cordova\run.bat""
ANDROID_HOME=C:\Users\t\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79\
WARNING : No target specified, deploying to emulator
WARNING : no emulator specified, defaulting to Nexus_5_API_23_x86
Waiting for emulator...
Could not launch './qemu/windows-x86_64/qemu-system-i386.exe': No such file or directory

I'm really not getting how to rectify this part... any suggestion or help will be very grateful...

like image 281
Gayatri Avatar asked Dec 14 '15 11:12

Gayatri


5 Answers

I'm using Android Studio 2.3 with SDK Build-Tools 25.0.2 and my problem was solved installing "Android Emulator":

like image 138
Daniel Carpio Contreras Avatar answered Nov 10 '22 12:11

Daniel Carpio Contreras


Try to add the emulator on your PATH.

export PATH="$ANDROID_HOME/emulator:$PATH"
like image 28
Giuseppe Matheus Avatar answered Nov 10 '22 11:11

Giuseppe Matheus


I just installed "Intel x86 Emulator Accelerator (HAXM installer)" in Android Studio

Tools > Android SDK Manager > SDK Tools

In the picture you can see more information

like image 35
max Avatar answered Nov 10 '22 10:11

max


Android emulator.exe path has been changed to /sdk/emulator folder on the newer sdk tools. ionic emulator command must be linked to older emulator.exe path so you should change related config file with new path.

I can't point which ionic config file is related with android emulator because i have never used ionic. But if you can change emulator.exe path with newer one, i am sure problem will gone.

like image 2
kanilturgut Avatar answered Nov 10 '22 12:11

kanilturgut


Win 10 : i could solve this issue in two steps 1- Enable VT-x in Boise. 2- Enable it at windows : control panel > programs > add feature>VT-x

like image 2
Ramy Elbouhy Avatar answered Nov 10 '22 11:11

Ramy Elbouhy