简体   繁体   English

Android模拟器错误,带有离子

[英]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 . 从启发这个问题,并且这一次 ,我试着在Ubuntu 14.04配置Android模拟器来模拟我的离子应用程序会与命令ionic emulate android But I get this error : emulator: ERROR: This AVD's configuration is missing a kernel file!! 但是我得到了这个错误: emulator: ERROR: This AVD's configuration is missing a kernel file!!

I've installed rev 19 of the android SDK : 我已经安装了android SDK的rev 19: 在此处输入图片说明 The "ARM EABI v7a System Image" is installed. 已安装"ARM EABI v7a System Image"

I don't how to get the window "Edit Android Virtual Device AVD". 我没有如何获取窗口“ Edit Android Virtual Device AVD”。

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

I have this in my ~/.bashrc 我的〜/ .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: 如果您没有像我一样创建任何AVD,则会收到以下消息:

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: 我的问题仅通过创建一个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: 选择您的目标API ID,在我的情况下,Android 4.4.2(API 19)为11,然后使用目标ID创建一个AVD:

android create avd -n android_4_4_2 -t 11  

ionic emulate android

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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