所谓的HelloWorld就是在eclipse搭建好环境后自动生成的项目直接运行的,郁闷的就是模拟器启动没有任何问题,可是,运行后的HelloWorld没有出来,进入模拟器界面后解锁了,可是没有什么反应,还是那个界面,等了5-10分钟也没反应,我要HelloWorld出来啊。贴出模拟器的启动日志:
[2011-11-05 17:50:26 - hellotest] ------------------------------
[2011-11-05 17:50:26 - hellotest] Android Launch!
[2011-11-05 17:50:26 - hellotest] adb is running normally.
[2011-11-05 17:50:26 - hellotest] Performing com.lq.test.HellotestActivity activity launch
[2011-11-05 17:50:26 - hellotest] Automatic Target Mode: launching new emulator with compatible AVD '2.2'
[2011-11-05 17:50:26 - hellotest] Launching a new emulator with Virtual Device '2.2'
[2011-11-05 17:50:28 - Emulator] emulator: emulator window was out of view and was recentered
[2011-11-05 17:50:28 - Emulator] 
[2011-11-05 17:50:28 - hellotest] New emulator found: emulator-5554
[2011-11-05 17:50:28 - hellotest] Waiting for HOME ('android.process.acore') to be launched...
[2011-11-05 17:51:55 - hellotest] HOME is up on device 'emulator-5554'
[2011-11-05 17:51:55 - hellotest] Uploading hellotest.apk onto device 'emulator-5554'
[2011-11-05 17:51:55 - hellotest] Installing hellotest.apk...看看安装成功了呀,再看看logcat的error的信息:
11-05 10:21:17.197: ERROR/Zygote(32): setreuid() failed. errno: 2
11-05 10:21:25.766: ERROR/Zygote(32): setreuid() failed. errno: 17
11-05 10:21:27.077: ERROR/BatteryService(58): usbOnlinePath not found
11-05 10:21:27.077: ERROR/BatteryService(58): batteryVoltagePath not found
11-05 10:21:27.077: ERROR/BatteryService(58): batteryTemperaturePath not found
11-05 10:21:27.107: ERROR/SurfaceFlinger(58): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
11-05 10:21:33.426: ERROR/EventHub(58): could not get driver version for /dev/input/mouse0, Not a typewriter
11-05 10:21:33.426: ERROR/EventHub(58): could not get driver version for /dev/input/mice, Not a typewriter
11-05 10:21:33.656: ERROR/System(58): Failure starting core service
11-05 10:21:33.656: ERROR/System(58): java.lang.SecurityException
11-05 10:21:33.656: ERROR/System(58):     at android.os.BinderProxy.transact(Native Method)
11-05 10:21:33.656: ERROR/System(58):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
11-05 10:21:33.656: ERROR/System(58):     at android.os.ServiceManager.addService(ServiceManager.java:72)
11-05 10:21:33.656: ERROR/System(58):     at com.android.server.ServerThread.run(SystemServer.java:184)
11-05 10:21:34.566: ERROR/SoundPool(58): error loading /system/media/audio/ui/Effect_Tick.ogg
11-05 10:21:34.587: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressStandard.ogg
11-05 10:21:34.587: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressSpacebar.ogg
11-05 10:21:34.597: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressDelete.ogg
11-05 10:21:34.597: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressReturn.ogg
11-05 10:21:36.037: ERROR/ThrottleService(58): Could not open GPS configuration file /etc/gps.conf
11-05 10:21:36.846: ERROR/logwrapper(141): executing /system/bin/tc failed: No such file or directory
11-05 10:21:36.896: ERROR/logwrapper(142): executing /system/bin/tc failed: No such file or directory
11-05 10:21:36.927: ERROR/logwrapper(144): executing /system/bin/tc failed: No such file or directory
11-05 10:21:45.450: ERROR/HierarchicalStateMachine(58): TetherMaster - unhandledMessage: msg.what=3貌似这个error和那个没有关系呀。求解,怎么就不出来了,不会和系统有关系吧,我装的1.5到4.0的sdk都装了的,不管用那个sdk运行都是模拟器出来HelloWorld不出来。快折腾死了。XP的系统还有一个问题就是,每次启动模拟器之后运行完了我就关了模拟器,然后再次运行项目的时候就会出现如下信息:
[2011-11-05 18:46:10 - hellotest] ------------------------------
[2011-11-05 18:46:10 - hellotest] Android Launch!
[2011-11-05 18:46:10 - hellotest] Connection with adb was interrupted.
[2011-11-05 18:46:10 - hellotest] 0 attempts have been made to reconnect.
[2011-11-05 18:46:10 - hellotest] You may want to manually restart adb from the Devices view.
就是启动不了,得重新启动eclipse才能再次启动运行这个项目,这个应该怎么解决。真的是一头雾水,第一次接触这个东西。
希望各位前辈多多指导啊。

解决方案 »

  1.   

    建一个项目eclipse自动生成的,那个代码就不用贴了吧?
    重点是
    [2011-11-05 17:51:55 - hellotest] Installing hellotest.apk...
    出现这一行log后后面的就不出来了,还有一行
    success...没有出来,就是说程序停在安装apk这了
      

  2.   

    sdk的环境我配好了的,运行命令行android -h没有问题,什么问题导致apk安装不成功呢。想撞墙了
      

  3.   

    ADT15搭配的SDK4.0或者低版本的SDK会不会导致这种问题?
      

  4.   

    我的已经解决了,在eclipes中Install new software更新一下Develop Tools就行了
      

  5.   

    我直接把apk装到我手机(2.3)上就不行,那个源码能有用吗