18

I have this cordova app and tried to run

cordova platform add android
cordova emualate android

but it give me below error from the console

enter image description here

and when I check from the android studio, everything seems installed

enter image description here

below is my android studio info

enter image description here

and I my environment variables

enter image description here

and I can confirm from the folder location that those path I put existed, any help, ideas please?

shizhen
  • 11,455
  • 9
  • 49
  • 81
Juliver Galleto
  • 8,489
  • 24
  • 76
  • 153

4 Answers4

47

Check this answer: PANIC: Missing emulator engine program for 'x86' CPU. and Mac and "PANIC: Missing emulator engine program for 'arm' CPU."

For newer version of Android SDK, the emulator path should be /<xxx>/Android/sdk/emulator/emulator, make this path is the first path to be searched in our environment variable.

i.e. add this path to your environment variable PATH BEFORE /<xxx>/Android/sdk/tools/emulator

Or try to remove /<xxx>/Android/sdk/tools/emulator from your PATH variable.

shizhen
  • 11,455
  • 9
  • 49
  • 81
  • 3
    This worked for me. The final solution looked like this: export ANDROID_HOME=$HOME/Android/Sdk export PATH=$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$PATH – Ostap Didenko Dec 03 '19 at 14:44
13

Use x86_64 system images for emulator on Windows 10:

Open "x86 Images" tab and download some of x86_64

KARPOLAN
  • 1,237
  • 13
  • 10
2

If you are using a mac make sure to put this in terminal:

./emulator -avd "Pixel_3_API_28"

Emulator program is in ~[user]/Library/Android/sdk/emulator directory.

Droid Chris
  • 2,703
  • 23
  • 28
  • Wow just came back to this and I answered my own question! Make sure you change to the emulator directory in terminal - cd ~/Library/Android/sdk – Droid Chris Jun 19 '20 at 19:08
0

It might be that Mac OS doesn't run 32bit applications anymore. When you change your simulator to 64 bit (x86_64) it will run fine:

Just install x86_64 version on emulator. android

ejazz
  • 2,398
  • 1
  • 18
  • 28
I.R.1989
  • 59
  • 1
  • 5