当我第一次安装eclipse和sdk时,我可以让helloworld加载到模拟器中就好了。 然后我开始直接使用手机,但现在我需要再次使用模拟器。
我现在无法在仿真器上加载helloworld。
以下是一些数据:
使用:eclipse中的xp,avd管理器
CONSOLE:
[2011-03-17 15:02:44 - HelloAndroid] ------------------------------
[2011-03-17 15:02:44 - HelloAndroid] Android Launch!
[2011-03-17 15:02:44 - HelloAndroid] adb is running normally.
[2011-03-17 15:02:44 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2011-03-17 15:02:44 - HelloAndroid] Automatic Target Mode: Preferred AVD 'my_avd' is not available. Launching new emulator.
[2011-03-17 15:02:44 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2011-03-17 15:03:08 - HelloAndroid] New emulator found: emulator-5554
[2011-03-17 15:03:08 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
LOGCAT(只是错误;这是一个半小时后!):
ERROR/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
ERROR/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
ERROR/BatteryService(31): usbOnlinePath not found
ERROR/BatteryService(31): batteryVoltagePath not found BatteryService(31): batteryTemperaturePath not found
ERROR/SurfaceFlinger(31): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
ERROR/dalvikvm(31): HeapWorker is wedged: 11070ms spent inside Lcom/android/internal/os/BinderInternal$GcWatcher;.finalize()V
ERROR/dalvikvm(31): VM aborting
ERROR/BatteryService(77): usbOnlinePath not found
ERROR/BatteryService(77): batteryVoltagePath not found
ERROR/BatteryService(77): batteryTemperaturePath not found
ERROR/SurfaceFlinger(77): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
ERROR/dalvikvm(77): HeapWorker is wedged: 11064ms spent inside Lcom/android/internal/os/BinderInternal$GcWatcher;.finalize()V
ERROR/BatteryService(100): usbOnlinePath not found
ERROR/BatteryService(100): batteryVoltagePath not found
ERROR/BatteryService(100): batteryTemperaturePath not found
ERROR/SurfaceFlinger(100): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
ERROR/dalvikvm(100): HeapWorker is wedged: 11225ms spent inside Lcom/android/internal/os/BinderInternal$GcWatcher;.finalize()V
ERROR/dalvikvm(100): VM aborting
ERROR/installd(33): eof
ERROR/installd(33): failed to read size
ERROR/BatteryService(123): usbOnlinePath not found
ERROR/BatteryService(123): batteryVoltagePath not found
ERROR/BatteryService(123): batteryTemperaturePath not found
ERROR/SurfaceFlinger(123): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
ERROR/dalvikvm(123): HeapWorker is wedged: 10990ms spent inside Lcom/android/internal/os/BinderInternal$GcWatcher;.finalize()V
它永远不会在控制台中传递“HelloAndroid等待HOME”。 注意它似乎陷入了“vm aborted”循环。
我很难过,准备完全重新安装sdk。 在我必须这样做之前有任何建议吗?非常感谢。
答案 0 :(得分:2)
不要急于重新安装SDK。尝试使用与原始API相同的API级别创建新的AVD,然后在该AVD上运行您的应用。如果没关系,只需删除原始图像,因为其图像可能已损坏。你不会失去任何东西,不值得花时间去尝试解决它。