Reputation: 9047
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
and when I check from the android studio, everything seems installed
below is my android studio info
and I my environment variables
and I can confirm from the folder location that those path I put existed, any help, ideas please?
Upvotes: 19
Views: 37767
Reputation: 87
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.
Upvotes: 0
Reputation: 3783
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.
Upvotes: 2
Reputation: 12583
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.
Upvotes: 50