Louis
Louis

Reputation: 2608

Android emulator error, with ionic

Inspired from this question and this one, I've tried to configure the android emulator on Ubuntu 14.04 to emulate my ionic app with the command ionic emulate android. But I get this error : emulator: ERROR: This AVD's configuration is missing a kernel file!!

I've installed rev 19 of the android SDK : enter image description here The "ARM EABI v7a System Image" is installed.

I don't how to get the window "Edit Android Virtual Device AVD".

$ echo $JAVA_HOME gives /usr/lib/jvm/java-7-openjdk-amd64

I have this in my ~/.bashrc

export PATH=${PATH}:/home/louisro/android-sdk-linux/tools
export PATH=${PATH}:/home/louisro/android-sdk-linux/platform-tools
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=${JAVA_HOME}/bin:$PATH
export PATH=/usr/local/bin:$PATH

Can you help me figure out what's wrong ?

Thanks

Upvotes: 1

Views: 2193

Answers (1)

Ben Yee
Ben Yee

Reputation: 1595

If you have no AVD created, like I did, you'll get a message like this:

WARNING : no emulator specified, defaulting to Android_5_1
Waiting for emulator...
emulator: ERROR: This AVD's configuration is missing a kernel file!!

My issue was resolved simply by creating an AVD:

android list targets

Pick your target API id, in my case it was 11 for Android 4.4.2 (API 19), then create an AVD with the target id:

android create avd -n android_4_4_2 -t 11  

ionic emulate android

Upvotes: 2

Related Questions