2017-10-12 4 views
0

ich die cordova App im Emulator startenCordova Emulation Bug

cordova emulate android 

Nachdem dieser Befehl ausgeführt wird, der Emulator startet, aber das Programm im Emulator startet nicht

Stattdessen ich Terminal sehe ich :

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)................. 

Wie konfiguriere ich die Umgebung für die Arbeit mit Cordova. Vielen Dank.

Ubuntu 16.04 Cordova 7.1.0

java version "1.8.0_131" Java (TM) SE Runtime Environment (Build 1.8.0_131-b11) Java HotSpot (TM) 64-Bit Server VM (build 25.131-b11, gemischter Modus)

Antwort

0

Dies scheint ein Emulatorproblem zu sein. Hast du es stattdessen mit einem anderen Emulator versucht? Ich bevorzuge die Emulatoren, die mit Android Studio geliefert werden. Sie sind ziemlich einfach zu konfigurieren und laufen stabil. Wenn Sie Ihre cordova App testen möchten, ist der Unterschied ist, dass Sie den Emulator zuerst ausgeführt werden soll und cordova run android dann stattdessen rufen von cordova emulate android

EDIT: here ist die offizielle Tutorial für virtuelle Geräte mit Android Studio Erstellen

+0

Das Problem war, im Zusammenhang mit der Version des Android-Emulators. Dieses Problem sah ich auf Emulatoren mit Version 22 +. In der folgenden Version ist alles in Ordnung. Vielen Dank für deine Antwort. Einen schönen Tag und guten Code) – chakopss

+0

danke und gleich zu Ihnen! – Pynnie