【问题标题】:Android emulator error, with ionicAndroid模拟器错误,带有离子
【发布时间】:2014-11-17 18:02:08
【问题描述】:

this questionthis one 的启发,我尝试在Ubuntu 14.04 上配置android 模拟器,以使用命令ionic emulate android 模拟我的离子应用程序。 但我收到此错误:emulator: ERROR: This AVD's configuration is missing a kernel file!!

我已经安装了 android SDK 的第 19 版: "ARM EABI v7a System Image" 已安装。

我不知道如何获取“Edit Android Virtual Device AVD”窗口。

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

我的 ~/.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

你能帮我找出问题所在吗?

谢谢

【问题讨论】:

    标签: android ubuntu ionic-framework


    【解决方案1】:

    如果您没有像我一样创建 AVD,您将收到如下消息:

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

    我的问题仅通过创建 AVD 就解决了:

    android list targets
    

    选择您的目标 API id,在我的例子中,它是 Android 4.4.2 (API 19) 的 11,然后使用目标 id 创建一个 AVD:

    android create avd -n android_4_4_2 -t 11  
    
    ionic emulate android
    

    【讨论】:

    • 谢谢。我按照你的建议做了,我收到一个新错误:WARNING : no emulator specified, defaulting to android_4_4_2 Waiting for emulator... qemu: could not load initrd ''
    • 现在我在创建 avd 时尝试选择另一个 --abi 选项......我得到了这个WARNING : no emulator specified, defaulting to android_4_4_2 Waiting for emulator... emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure KVM is properly installed and usable. CPU acceleration status: KVM is not installed on this machine (/dev/kvm is missing).
    • 我从这个页面的协议中得到错误:virsh -c qemu:///system list error : impossible to connect to hypervisor error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission not granted
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-04-03
    • 1970-01-01
    • 1970-01-01
    • 2021-11-06
    • 1970-01-01
    • 1970-01-01
    • 2012-01-28
    相关资源
    最近更新 更多