Android---真机调试时不能识别手机的解决方案


- 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是腾讯管家启动的进程
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---真机调试时不能识别手机的解决方案的更多相关文章
- Xamarin Android 真机调试时闪退
方法1:引起此问题的原因一般是因为 Mono Shared Runtime 在手机上没有运行,这个程序相当于.net运行时,没有运行的话用C#开发的程序自然无法运行. 解决方法是将此程序设置为自动运行 ...
- Xamarin.Android真机调试时闪退解决办法
项目->属性->Android Options,Packaging页签 去掉 Use Shared Runtime可解决
- mui真机调试时无法查找到手机
在做mui的真机调试时手机查找不到手机,有可能是你的 adb interface 驱动 版本过低,先下载 或自行百度 http://www.onlinedown.net/soft/1164054. ...
- Unity Profiler连接Android真机调试
Profiler在Editor模式就可以观看性能消耗,但是毕竟电脑配置高,跟手机真机环境还是有区别.实际开发中的优化还是推荐用真机测试. 因为IOS一般比Android手机的配置高,在Android平 ...
- 在Mac系统上配置Android真机调试环境
在Mac系统上配置Android真机调试环境 mac上配置安卓环境还说挺方便的,真机调试也比win上要好一些.win上被各种软件强行安装了xxx助手. 在mac上就了一个干净的感觉. 下载Androi ...
- Android真机调试手动添加程序包的LogCat
android真机调试有时候看LogCat 时,有时候那个跑的本程序的LogCat 没有出现而是 出现的是" All messages (no filters) " .此时 的Lo ...
- 解决真机调试时Eclipse DDMS上打不开/data目录的问题
一般真机调试时DDMS里面的File Explorer是不能打开/data 目录的,不过也很容易解决. 1.首先手机要root.这个很简单,网上一大堆资料和软件. 2.仅仅root之后还不行,下载一个 ...
- windows10UWP开发真机调试时遇到DEP6100和DEP6200解决办法
windows10UWP开发真机调试时遇到DEP6100和DEP6200(其实未连接上设备都会报这两个错误,无论真机还是虚拟机)…… 此方法适合真机调试时遇到: 弹出提示框要求输入配对码,无论如何输入 ...
- Unity Frame Debugger连接Android真机调试
当用Profiler分析到不是代码导致的性能问题,当前场景最大的性能瓶颈是渲染时,或者自己写的Shader要调试时,都可以用Frame Debugger进行调试. 按下列步骤设置打包,既可以用Prof ...
随机推荐
- bootstrap的小图标
bootstrapt的小图标 关于bootstrap的<i>小图标,需要几个要素.<i class="icon-search"></i>形式第 ...
- 如何正确接收 GitHub 的消息邮件
背景 我厂的开发流程通常都是基于 GitHub 的.在 GitHub 上 review 代码,也是我日常工作的重要组成部分.对我来说,在 code review 过程中最讨厌的莫过于,我在 pull ...
- SparkContext的初始化(叔篇)——TaskScheduler的启动
<深入理解Spark:核心思想与源码分析>一书前言的内容请看链接<深入理解SPARK:核心思想与源码分析>一书正式出版上市 <深入理解Spark:核心思想与源码分析> ...
- C# 基本算法
1.冒泡排序 排序 ,,,,,, }; ; i < ArrayList.Count(); i++) { for (int j = i; j < ArrayList.Count(); j++ ...
- maven工程引用外部jar包
maven工程经常回遇到引用外部jar包,需要先安装在jar包,然后再在工程中pom.xml文件中添加依赖. 示例: 命令行中运行: mvn install:install-file -Dfile=E ...
- Android Studio项目结构
我们创建了一个Android Project,打开就如下图所示: 我们选择Project视图,就会有以下的项目文档结构: 上面笔者标注的数字是接下来要讲解的内容. 我们先来看1: 我们创建Appl ...
- 10. Software, Software Engineering, water fall (瀑布模型),Code Complete等名词的来源
①.Software-软件”一词是20世纪60年代才出现的,软件Software——1958年由贝尔实验室的著名统计学家John Tukey 提出软件与硬件一起构成完整的计算机系统,它们是相互依存,缺 ...
- React Native填坑之旅--LayoutAnimation篇
比较精细的动画可以用Animated来控制.但是,在一些简单的界面切换.更新的时候所做的动画里再去计算开始值.结束值和插值器如何运作绝对是浪费时间. RN正好给我们提供了LayoutAnimation ...
- 5.1 Intent
Intent是不同组件之间相互通讯的纽带,封装了不同组件之间通讯的条件.Intent用于启动Activity, Service, 以及BroadcastReceiver三种组件, 同时还是组件之间通信 ...
- Windows下Qt5搭建Android开发环境笔记
Windows很大的特点是配置使用几乎都可以图形化进行,和Linux比起来在很多时候配置环境也要方便很多.所以,搭建Qt for Andorid也是十分简单的.需要以下工具: 1.最方便的Qt官方包, ...