2017-10-12 291 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