简体   繁体   中英

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 : 在此处输入图片说明 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM