Ionic version: (check one with 'x') [ ] 2.x [ X ] 3.x [ ] 4.x I'm submitting a ... (check one with 'x') [ X ] bug report [ ] feature request Current behavior: When I try ionic cordova run android and then I see this 'PANIC: Missing emulator engine program for 'x86' CPU.'Expected behavior: This will launch a real device or virtual device to run the app. Steps to reproduce: I have removed entire Android Studio and all files and folder on MacOs and then I have installed the last version of Android Studio and after that I have created a test application on Android Studio to test it and finally The app runs correctly with virtual device. Later I have created an App with Ionic and I have tried to test it, but I get this error 'PANIC: Missing emulator engine program for 'x86' CPU.' Other information: Ionic info: (run ionic info from a terminal/cmd prompt and paste output below): |
I encountered the same problem, I refer to this method to solve the problem |
Not sure if you've fixed your problem but check which system image your android virtual device is using (you can check on android studio under the 'API' column in the AVD list). Make sure you're not using anything too new, I tried using 28 and 27 and neither worked but 26 (Android Oreo 8.0) did. Cheers! |
Had the same problem, solved it with these lines added to .bash_profile: export ANDROID_SDK_ROOT=/Users//Library/Android/sdk export PATH=$ANDROID_SDK_ROOT/emulator:$ANDROID_SDK_ROOT/tools:$PATH |
@ElLocoNutz , it is not working for me, Ran both commands, still the same output. |
Ok my wrong, apparently I used the wrong expression when I wrote the path, it should look like this: Where [username] is the name of your user folder. But don't just run those commands or the change won't stay. You should add those lines to your '.bashrc' or '.bash_profile' and after that you need to reload the bash, restart the console or source the edited file, e.g. 'me@localhost:~$ source .bashrc' But keep in mind those are the folders that worked for me, your system might be using different ones, check the folder before you change anything, you should find there the emulator. |
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there. If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know! Thank you for using Ionic! |
Issue moved to: ionic-team/ionic-v3#610 |
nano ~/.bash_profile