发布于 2016-02-17 15:16:00 | 174 次阅读 | 评论: 1 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

Android移动端操作系统

Android是一种基于Linux的自由及开放源代码的操作系统,主要使用于移动设备,如智能手机和平板电脑,由Google公司和开放手机联盟领导及开发。尚未有统一中文名称,中国大陆地区较多人使用“安卓”或“安致”。


这篇文章主要介绍了Android编程中出现The connection to adb is down问题的解决方法,涉及Android进程与服务的相关操作技巧,需要的朋友可以参考下

本文分析了Android编程中出现The connection to adb is down问题的解决方法。分享给大家供大家参考,具体如下:

1.报错:

BUILD FAILED
D:\workspace\ganji\build.xml:144: The following error occurred while executing this line:
D:\workspace\ganji\build.xml:271: Unable to delete file D:\workspace\ganji\tmp\proguard\tmp.jar

解决:

已经开了一个模拟器了,无法重新编译,必须关闭一个。用于ant

2.报错:

The connection to adb is down, and a severe error has occured.

解决:

cmd跳到sdk tools文件路径下
adb kill-server
然后再adb start-server

3.报错:

The connection to adb is down, and a severe error has occured.
[2010-03-11 09:36:56 - HelloOPone] You must restart adb and Eclipse.
[2010-03-11 09:36:56 - HelloOPone] Please ensure that adb is correctly located at 'D:\OPhoneSDK_1.5
\platform-tools\adb.exe' and can be executed.

解决:

方法1.cmd中adb kill-server,然后adb -startserver
方法2.方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。
方法3.方法1和2都不管用,那么查看最后一句报错中:platform-tools中是否有adb.exe(我的错误就是在相关路径下面没有platform-tools文件夹
,所以我选择新建一个文件夹,并且把tools中的文件全部复制到platform-tools中)

4.前面的方法试了还是不行的话,建议重新装一个系统,最好换个系统。

希望本文所述对大家Android程序设计有所帮助。



最新网友评论  共有(1)条评论 发布评论 返回顶部
iwvj 发布于2016-05-30 04:00:16
不懂
支持(0)  反对(0)  回复

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务