Android开发基础——真机测试错误,ADB启动不了,程序安装不了,the connection to adb is down,INSTALL_CANCELED_BY_USER...
2014-04-22 18:39
609 查看
在Android开发中,无论是真机测试还是***D测试,都会报出这些错误.在这里,我会详细说明一下怎么会出现这些错误的,然后要怎么样才能解决这些错误.
错误一:
The connection to adb is down,and a server error has occured.
you must restart adb and Eclipse.
![](http://img.blog.csdn.net/20140421214807468?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2hpbGxheF9saQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
这种错误常见于开机到报这个错误为止,Eclipse关闭过,就是之前已经启动了一个server了,所以就会报这个错误.
解决方法就是打开CMD,进入adb所在文件夹,键入:
adb kill-server(先杀掉之前那个server)
adb start-server(再重新启动个server)
![](http://img.blog.csdn.net/20140421220232593?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2hpbGxheF9saQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
出现daemon started successfully 就表示成功启动server,接下来按照提示重启一下Eclipse即可.
错误二:
installation error : INSTALL_CANCELED_BY_USER
please check logcat output for more details
launch canceled!
这种错误一般出现在小手机,内存比较小的手机,因为内存不够,导致安装失败.
主要解决方法就是手动把手机里的程序删掉一些,腾出一些空间出来,这样就可以安装了.
有时候手机进入锁屏状态也会报这个错误,只要解开锁屏就可以了
![](http://img.blog.csdn.net/20140421221627609?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2hpbGxheF9saQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
错误三:
installation error : INSTALL_FAILED_MEDIA_UN***AILABLE
please check logcat output for more details
launch canceled!
这个错误是因为手机在别的电脑安装了同样的一个程序
![](http://img.blog.csdn.net/20140422183454218?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2hpbGxheF9saQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
错误四:
ActivityManager:starting:Intent{act=android.intent.action.MAIN cat = [android.intent...
ActivityManager:Warning:Activity not started, its current task has been brought to ...
这个错误是发生在Elipse run project的时候,打开的是之前安装的程序,每次想看一下自己重启修改的程序,run的时候打开的是之前的程序.
解决方法就是把数据线跟手机断开一下,重新连接一下就可以了,就是把手机的数据线拔了,重新插一下手机就可以了.
![](http://img.blog.csdn.net/20140421222747859?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2hpbGxheF9saQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
错误五:
ActivityManager:Warning:Activity not started, its current task has been brought to ...
问题出现的情况跟错误四一样
![](http://img.blog.csdn.net/20140422183646828?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2hpbGxheF9saQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
所以解决方法也是跟错误四一样
尊重原创,转载请注明出处:http://blog.csdn.net/chillax_li/article/details/24272343
错误一:
The connection to adb is down,and a server error has occured.
you must restart adb and Eclipse.
这种错误常见于开机到报这个错误为止,Eclipse关闭过,就是之前已经启动了一个server了,所以就会报这个错误.
解决方法就是打开CMD,进入adb所在文件夹,键入:
adb kill-server(先杀掉之前那个server)
adb start-server(再重新启动个server)
出现daemon started successfully 就表示成功启动server,接下来按照提示重启一下Eclipse即可.
错误二:
installation error : INSTALL_CANCELED_BY_USER
please check logcat output for more details
launch canceled!
这种错误一般出现在小手机,内存比较小的手机,因为内存不够,导致安装失败.
主要解决方法就是手动把手机里的程序删掉一些,腾出一些空间出来,这样就可以安装了.
有时候手机进入锁屏状态也会报这个错误,只要解开锁屏就可以了
错误三:
installation error : INSTALL_FAILED_MEDIA_UN***AILABLE
please check logcat output for more details
launch canceled!
这个错误是因为手机在别的电脑安装了同样的一个程序
错误四:
ActivityManager:starting:Intent{act=android.intent.action.MAIN cat = [android.intent...
ActivityManager:Warning:Activity not started, its current task has been brought to ...
这个错误是发生在Elipse run project的时候,打开的是之前安装的程序,每次想看一下自己重启修改的程序,run的时候打开的是之前的程序.
解决方法就是把数据线跟手机断开一下,重新连接一下就可以了,就是把手机的数据线拔了,重新插一下手机就可以了.
错误五:
ActivityManager:Warning:Activity not started, its current task has been brought to ...
问题出现的情况跟错误四一样
所以解决方法也是跟错误四一样
尊重原创,转载请注明出处:http://blog.csdn.net/chillax_li/article/details/24272343
相关文章推荐
- Android开发之 adb 启动问题或是部署应用不成功,出现“The connection to adb is down, and a severe error has occured.”错误
- 启动安卓模拟器时The connection to adb is down, and a severe error has occured.解决方法之一 分类: Android安装及配置 2014-11-29 21:57 100人阅读 评论(0) 收藏
- Android错误——The connection to adb is down, and a severe error has occured 解决方案
- 启动Android模拟器报 “The connection to adb is down, and a severe error has occured.”的错误
- [置顶] Android无法启动AVD解决方法出现"The connection to adb is down...You must restart adb and Eclipse."
- Android错误:The connection to adb is down, and a severe error has occured.
- The connection to adb is down 解决办法 分类: Android安装及配置 2014-05-30 10:58 92人阅读 评论(0) 收藏
- Android基础(2)error:The connection to adb is down, and a severe error has occured.
- Android 启动异常:The connection to adb is down, and a severe error has occured
- Android开发解决The connection to adb is down, and a severe error has occured. 问题
- android 开发遇见小问题 :The connection to adb is down, and a severe error has occured.
- Android开发问题记录——“The connection to adb is down...”
- Eclipse下开发android,The connection to adb is down, and a severe error has occured.提示需要重启adb怎么处理?
- Android程序出错:The connection to adb is down, and a severe error has occured
- android在手机上运行程序时,会报出The connection to adb is down, and a severe error has occured
- android The connection to adb is down 错误信息
- Android开发中遇到The connection to adb is down, and a severe error has occured.
- Ubuntu Adt-Eclipse程序启动报错:The connection to adb is down, and a severe error has occured.
- Android开发模拟器报错问题解决“The Connection to adb is down,and a server error has occured”