1,android项目在eclipse中启动时,总输出不能运行adb.exe并输出以下错误,排查下来,任务管理器中也有adb.exe的进程,并且端口也没有被占用。万般无奈之下,只能重新安装并更新sdk,最终问题得也解决。
贴一篇别人处理排查该问题的文章:http://guozhenqian.iteye.com/blog/1924802
The connection to adb is down, and a severe error has occured.
[2015-08-30 09:36:56 - HelloOPone] You must restart adb and Eclipse.[2015-08-30 09:36:56 - HelloOPone] Please ensure that adb is correctly located at 'D:\OPhoneSDK_1.5
\platform-tools\adb.exe' and can be executed.
2,启动android时,控制台提示启动成功输出以下信息,但模拟器中始终未输出hello word,解决方案为:在已启动完成的模拟器屏幕解锁,然后重新运行程序,这时hello word则显示出来了,应该是我机子模拟器启动慢造成的。
[2015-08-30 15:58:05 - FristAndroid] Uploading FristAndroid.apk onto device 'emulator-5554'
[2015-08-30 15:58:06 - FristAndroid] Installing FristAndroid.apk...
[2015-08-30 15:59:55 - FristAndroid] Success!
[2015-08-30 15:59:56 - FristAndroid] Starting activity com.example.fristandroid.MainActivity on device emulator-5554