当有莫名其妙的错误里, 可以

当有莫名其妙的错误里, 可以

clean project , android tools -->fix projects

还不行.

1. 重新插拨数据线.

2. 关闭打开USB调试.

3. 结束ADB,再打开

4.关闭eclipse再打开

5.关电脑再打开

6.关设备再打开.

---------------------------------------

错误1:

Connection with adb was interrupted.
1 attempts have been made to reconnect.
You may want to manually restart adb from the Devices view.

解决错误1 :

重启eclipse, 此时不断开USB, 即先连接USB再开eclipse.

---------------------------------------

错误2:

adb devices 显示offline, 或者eclipse中的设备为unknow.

解决错误2:

USB连接问题, 重连.

------------------------------------------

错误3:

Android error: Failed to install *.apk on device *: timeout

可能项目越做越大吧(其实是图片多^-^),到了后面每次调试安装时都出现Failed to install *.apk on device *: timeout
现在将这个问题整理出来,以便以后查阅。

错误出现:连接真机调试的时候如果连接太久没响应就会出现timeout

根据网上众多资料:可分为这几个解决方法

方法由简单到麻烦:

1.在window-》prensent....-》android-》设置ddms的timeout时间。这种是就最有效、最简洁的。

2.delete android里面的 apk,保证速度。不过试过一次后,真机好像变“聪明了”,也出现timeout。

3.Cleaning the project (Project->Clean),不行就重启eclipse或者android,很郁闷的是,重启后运行第一次可以。第二次就开始变慢了,也就是出现timeout

4.网上一个我没试过的方法:

Don't use spaces in your directory names. If you have files that are in such a directory (e.g., stuff inside of C:\Program Files\), copy them to another spot that does not have spaces.

很明显是说目录里面不要有空格,排除

 

 

***********************几个链接******************************

http://stackoverflow.com/questions/7737995/connection-with-adb-was-interrupted-and-attempts-to-reconnect-have-failed

http://stackoverflow.com/questions/4775603/android-error-failed-to-install-apk-on-device-timeout

http://stackoverflow.com/questions/5584976/android-device-chooser-my-device-seems-offline

posted on 2012-05-11 11:44  明明的天天  阅读(2613)  评论(0编辑  收藏  举报

导航