原文地址:http://blog.csdn.net/androiddevelop/article/details/8130416
- adb kill-server
- adb start-server
6. 重启Eclipse
7. 查看有几个ADB进程,全部杀死再重新启动ADB
netstat -a -n -o |findstr "5037"
输出结果:
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 5096
TCP 127.0.0.1:5037 127.0.0.1:51577 ESTABLISHED 5096
TCP 127.0.0.1:51577 127.0.0.1:5037 ESTABLISHED 4324
2. 从上面得知PID = 5096占用了5037端口,现在通过PID查看进程名,看到底哪个进程占用此端口
tasklist /v | findstr 5096
输出结果:
tadb.exe 5096 Console 1 4,932 K Unknown ...... 0:00:02 暂缺
网上查询得知tadb.exe是腾讯管家启动的进程
3. 杀死占用5037端口的进程 tadb.exe
taskkill /f -pid 5096
taskkill /im tadb.exe
输出结果
成功: 已终止 PID 为 5096 的进程。
- 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 server didn't ACK
- * failed to start daemon *
- Adb failed to restart! Make sure the plugin is properly configured
- ** Adb connection Error:远程主机强迫关闭了一个现有的连接
- java.io.IOException: 您的主机中的软件中止了一个已建立的连接。
- at sun.nio.ch.SocketDispatcher.write0(Native Method)
- at sun.nio.ch.SocketDispatcher.write(Unknown Source)
- at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
- at sun.nio.ch.IOUtil.write(Unknown Source)
- at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
- at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)
- at com.android.ddmlib.Client.sendAndConsume(Client.java:575)
- at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
- at com.android.ddmlib.Client.requestAllocationStatus(Client.java:421)
- at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:854)
- at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:822)
- at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:781)
- at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:649)
- at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:42)
- at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:577)
- Failed to install .apk on device '': Unable to open sync connection!
- java.io.IOException: Unable to open sync connection!
- Launch canceled!
问题7
- ADB rejected shell command (rm /data/local/.apk): closed
- Error during Sync: Unable to open sync connection!
- Error during Sync: Unable to open sync connection!
- Adb connection Error:远程主机强迫关闭了一个现有的连接。
- Connection attempts: 1
- Connection attempts: 2
- Connection attempts: 3
- Failed to install .apk on device : Too many open files
- com.android.ddmlib.SyncException: Too many open files
- Launch failed on device:
- Failed to install .apk on device '': closed
- com.android.ddmlib.InstallException: closed
- Launch failed on device:
- Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
- Please check logcat output for more details.
- Launch failed on device:
问题11
- Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE
- Please check logcat output for more details.
- Launch failed on device:
问题12
- Android Launch!
- Connection with adb was interrupted.
- 0 attempts have been made to reconnect.
- You may want to manually restart adb from the Devices view.
问题13
- Unexpected error while launching logcat. Try reselecting the device.] closed
- om.android.ddmlib.AdbCommandRejectedException: closed
- at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:381)
- at com.android.ddmlib.Device.executeShellCommand(Device.java:462)
- at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:109)
- at java.lang.Thread.run(Unknown Source)
- adb server is out of date. killing...
- * daemon started successfully *
- error: device offline
出现问题的版本
- D:\>adb version
- Android Debug Bridge version 1.0.29
问题出在adb的版本太低,更新ADT后问题解决
- D:\>adb version
- Android Debug Bridge version 1.0.31
Android adb常见问题整理(转)的更多相关文章
-
android adb常见问题的解决方法!
** adb的常见问题 adb:android debug bridge,用于连接模拟器/手机与PC端软件(比如:eclipse或者xx手机助手) adb devices -> ...
-
安卓 ADB常见问题整理
以下都是ADB连接问题,可以通过尝试如下步骤,由简单度排序 1. 插拔下USB连接线 2. 关闭USB模式再打开 3. 执行以下命令 adb kill-server adb start-server ...
-
Android WebView常见问题及解决方案汇总
Android WebView常见问题解决方案汇总: 就目前而言,如何应对版本的频繁更新呢,又如何灵活多变地展示我们的界面呢,这又涉及到了web app与native app之间孰优孰劣的争论. 于是 ...
-
【转】Linux下Android ADB驱动安装详解
原文网址:http://blog.csdn.net/zhenwenxian/article/details/5901350 Linux下Android ADB驱动安装详解 概述 最近由于内置的合作商比 ...
-
Android之Android WebView常见问题及解决方案汇总
如有转载,请声明出处: 时之沙: http://blog.csdn.net/t12x3456 Android WebView常见问题解决方案汇总: 就目前而言,如何应对版本的频繁更新呢,又如何灵活多变 ...
-
android adb devices offline的解决办法
在做Android开发时经常出现android adb devices offline,解决办法如下: 1 重启adb服务 adb kill-server adb start-server linux ...
-
阿里P8大佬熬夜10天,把所有Android第三方库整理成了PDF
缘起 随着互联网企业的不断发展,产品项目中的模块越来越多,用户体验要求也越来越高,想实现小步快跑.快速迭代的目的越来越难,还有应用之间的互相调用等等问题,插件化技术应用而生.如果没有插件化技术,美团. ...
-
android adb常用命令
android adb命令: adb root --获取root.adb remount --获取文件操作权限(push)adb shell pm list package 获取包名列表com.mqt ...
-
Android adb push 和 pull操作
由于安卓真机本地调试时,每次启动并生成apk然后安装到设备比较费时,而很多情况是仅仅修改了hot 脚本文件(cocos2dx + lua). 所以,使用热更机制把修改后的lua文件push到热更目录( ...
随机推荐
-
C文件编译、链接指令
通过mac终端 输入指令: cc -c 文件名.c 可以把C文件编译成.o文件(其实是2进制文件) 然后通过指令 cc 文件名.o 把.o文件链接C文件所需要的C语言的底层库,成为可以直接运行的lin ...
-
c# signalr聊天室开源资料
SignalR+LayIM源码: http://www.cnblogs.com/panzi/p/5742089.html 钉钉客户端源码: http://www.cnblogs.com/loveson ...
-
LintCode 整数排序
题目:给一组整数,按照升序排序,使用选择排序,冒泡排序,插入排序或者任何 O(n2) 的排序算法. 1.冒泡:从头开始,比较相邻的两个元素,大的放在后面.一轮结束之后,最大的数沉底,不参与下一轮比较. ...
-
poj 3268 Silver Cow Party(最短路,正反两次,这个模版好)
题目 Dijkstra,正反两次最短路,求两次和最大的. #define _CRT_SECURE_NO_WARNINGS //这是找出最短路加最短路中最长的来回程 //也就是正反两次最短路相加找最大的 ...
-
hadoop+hive+spark搭建(三)
一.spark安装 因为之前安装过hadoop,所以,在“Choose a package type”后面需要选择“Pre-build with user-provided Hadoop [can ...
-
js中判断undefined类型
typeof 运算符返回一个用来表示表达式的数据类型的字符串.可能的字符串有:"number"."string"."boolean".&qu ...
-
参数FAST_START_MTTR_TARGET的理解
本文来源:keeptrying <参数FAST_START_MTTR_TARGET的理解> 参数FAST_START_MTTR_TARGET的理解 一.FAST_START_MTTR_T ...
-
dip vs di vs ioc
https://*.com/questions/6766056/dip-vs-di-vs-ioc https://docs.microsoft.com/en-us/aspnet ...
-
java8新特性:内存和lambda表达式
1.内存变化 取消了永久区和方法区,取而代之的是MetaSpace元空间,即直接使用物理内存,即电脑内存8G则直接使用8g内存,而不是分配内存.因为内存改变,所以调整性能对应的调整参数也随之改变. 2 ...
-
django 生成csv文件重要代码
import csv from django.http import HttpResponse # Number of unruly passengers each year 1995 - 2005. ...