android开发搭建环境时遇到问题

来源:互联网 发布:网络教育的优缺点 编辑:程序博客网 时间:2024/05/09 10:08

在运行程序时报错:

[2011-07-20 20:17:26 - Activity01] Android Launch!
[2011-07-20 20:17:26 - Activity01] The connection to adb is down, and a severe error has occured.
[2011-07-20 20:17:26 - Activity01] You must restart adb and Eclipse.
[2011-07-20 20:17:26 - Activity01] Please ensure that adb is correctly located at 'D:\HUAGONGEandroid\android-sdk-windows-1.6_r1\tools\adb.exe' and can be executed.

或者在启动myEclipse之后会一直重复显示错误:
[2011-07-20 21:05:26 - DeviceMonitor]Adb connection Error:Failed to read the adb response!
[2011-07-20 21:05:26 - DeviceMonitor]adb refused request: 
[2011-07-20 21:05:26 - DeviceMonitor]adb refused request: 
[2011-07-20 21:05:26 - DeviceMonitor]Failed to read the adb response!


        我根据网上的一些经验尝试的主要解决办法有:
方法1.win+R进入cmd中adb kill-server,然后adb -startserver 
方法2.任务管理器中杀死adb.exe,然后重启myEclipse
方法3.卸载掉myEclipse重新安装之后任然也存在问题

        三种方法都试过,但问题依旧未能解决啊~~~
        后来了解到是启动myEclipse时其一直尝试连接5037端口,但依旧无法连接成功,所以只能通过adb connect 127.0.0.1实现。其并不能完全解决问题,需要在每次启动虚拟机时手动连接方可。。。

        在网上了解到在所有方法尝试过后,应该是操作系统存在问题


   虽然现在已经重转电脑并正常使用了,不过如果有哪位了解更好的解决办法,望提出学习学习,先thx了~

原创粉丝点击