Android adb常见问题整理

来源:互联网 发布:ubuntu 安装 分区 编辑:程序博客网 时间:2024/06/07 09:48
Android adb常见问题整理




报错1:


The connection to adb is down, and a severe error has occured. You must restart adb and Eclipse. Please ensure that adb is correctly located at 'adb.exe' and can be executed. 


解决方法:


进入命令行下重启adb进程:


adb kill-server  


adb start-server 


报错2:


ADB server didn't ACK


* failed to start daemon *


解决方法:


提示这种错误,很有可能是手机助手类软件占用了adb进程的端口所致,简单粗暴的方法是直接把进程杀了或直接卸载掉这类软件。




DDMS - Devices - Reset adb
如果不行,关闭豌豆荚(或腾讯手机助手之类的手机管理软件)或者Eclipse重启。
报错3:
Adb failed to restart! Make sure the plugin is properly configured
解决方法:
杀死 Wandoujia  相关的所有进程,ok
wandoujia_daemon.exe
wandoujia_helper.exe
报错4:


Adb connection Error:远程主机强迫关闭了一个现有的连接
解决方法:
解决1,2,3 都尝试下
报错5:
java.io.IOException: 您的主机中的软件中止了一个已建立的连接。


解决方法:
通常是同时打开了两个eclipse,关闭一个即可。
解决小米2手机连接Mac,Windows 8等系统,在eclipse中run as Android Application,找不到设备问题,错误提示如下:


No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD.


前提:


1、确保手机连接电脑,装好驱动


2、手机上设置-> 开发者模式打开-> USB调试模式打开


解决方法:


拨号模式下输入 *#*#717717#*#*,选择确认,然后手机拔了重新插上


用完了再重复即可关闭。

0 0
原创粉丝点击