2017-10-12 246 views
0

我启动科尔多瓦应用程序在模拟器科尔多瓦仿真错误

cordova emulate android 

运行此命令后,模拟器启动,但在仿真器程序无法启动

相反,我端我看到这个:

No emulator specified, defaulting to Nexus_7_2012_API_26 
Waiting for emulator to start... 
emulator: Requested console port 5584: Inferring adb port 5585. 
path /home/$USER/.android/avd/Nexus_7_2012_API_26.avd/system.img.qcow2 
path /home/$USER/.android/avd/Nexus_7_2012_API_26.avd/vendor.img.qcow2 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000028 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000002c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000028 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000002c 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000001c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000020 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000024 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000020 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000001c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000020 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000024 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000028 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000002c 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000001c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000020 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000024 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000001c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000024 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000020 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000002c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000028 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000001c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000024 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000020 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000002c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000028 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000001c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000024 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000020 
qemu-system-i386: goldfish_battery_read: Bad offset 000000000000002c 
qemu-system-i386: goldfish_battery_read: Bad offset 0000000000000028 
Waiting for emulator to boot (this may take a while)................. 

如何配置环境以与Cordova一起使用。谢谢。

的Ubuntu 16.04 科尔多瓦7.1.0

Java版本 “1.8.0_131” 的Java(TM)SE运行时环境(建1.8.0_131-B11) 的HotSpot的Java(TM)64位服务器VM(构建25.131-b11,混合模式)

回答

0

这似乎是一个模拟器问题。你有尝试过使用其他模拟器吗?我更喜欢Android Studio附带的模拟器。他们很容易配置和运行稳定。当你想测试你科尔多瓦的应用程序,所不同的是,你应该先运行模拟器,然后调用cordova run android代替cordova emulate android

编辑:here是与Android工作室

+0

的问题是创建虚拟设备的官方教程与android模拟器的版本相关。在22 +版本的仿真器上看到了这个问题。在下面的版本中,一切都很好。非常感谢您的回答。祝你有个美好的一天,并且有很好的代码) – chakopss

+0

谢谢你和你一样! – Pynnie