[V1] [Solved] Cordova Set-up Ubuntu / Linux
So I’ve recently started playing around with cordova, and I’m sharing a few technical issues I encountered along the way
1. Missing emulator engine
PANIC: Missing emulator engine program for 'x86' CPU.
The latest version of android studio stores emulator bins under
Hence on my system the wrong binaries were running when cordova loads
First check where the emulator binary lives via:
$ which emulator
If you get
home/<user_name>/Android/tools/emulatorthen update the .bashrc PATH
vim ~/.bashrcor user an editor of you’re choice
export PATH=" ........ :$ANDROID_HOME/emulator
note This needs to come before any reference to
2. /dev/kvm permission denied
note virtualization technology needs to be enabled. This is done within your BIOS settings
$ sudo apt install qemu-kvm
$ sudo adduser <USERNAME> kvm
$ sudo chown <USERNAME> /dev/kvm
- Restart your computer
The emulator is running but the cordova app fails to load resulting in the following error:
application error CLEARTEXT_NOT_PERMITTED
Recent version of android (API 28 and above) don’t allow connections to http servers as they are considered insecure. However during development are server is http
see android-docs for more
Make an avd that uses an android image with API version less than 28
ex. running android 8.0
I encountered a couple more issues but these are the main ones.
Please note I’m new to cordova so these may not be the best solutions but they worked in my case.
king_of_leon last edited by
I am having the same issue in mac
@mKomo you helped me, thanks!