【发布时间】:2011-03-17 22:35:55
【问题描述】:
当我第一次安装 eclipse 和 sdk 时,我可以让 helloworld 很好地加载到模拟器中。 然后我开始直接使用我的手机,但现在我需要再次使用模拟器。
我现在无法在模拟器上加载 helloworld。
这是一些数据:
使用:xp,eclipse中的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] Waiting for HOME”。 注意它似乎陷入了“vm aborted”循环。
我很困惑,准备完全重新安装 sdk。 在我必须这样做之前有什么建议吗?非常感谢。
【问题讨论】:
-
这很明显,但是你试过重启 Eclipse 吗?
-
那太糟糕了。这周我不得不自己重新安装它,现在重新安装它可能比等待解决方案更快。
-
我也这么认为。幸运的是,我备份了所有内容。