ionic cordova run android results in PANIC: Missing emulator engine program for 'x86' CPU
From SDK tools version 25.3.0 onwards, the emulator has been removed and moved to ../sdk/emulator
.
Just set ${ANDROID_SDK_ROOT}/emulator
to your $Path
variable so that emulator
can be called from the command line and ionic cordova will detect the emulator.
It seems that the above answers worked for you which is great but for anyone else still encountering the error, make sure to check which system image your android virtual device is using (you can check on android studio under the 'API' column in the AVD list).
Check that you're not using anything too new, I tried using 28 and 27 and neither worked but 26 (Android Oreo 8.0) did
For Windows Users:
Just add this to PATH variable
C:\Users\lenovo\AppData\Local\Android\Sdk\emulator