Please ensure that adb is correctly located 问题的解决

来源:互联网 发布:java message 编辑:程序博客网 时间:2024/06/06 12:24


1.运行Android时出现以下问题导致不能运行:


[2013-10-16 20:13:41 - Hello] The connection to adb is down, and a severe error has occured.

[2013-10-16 20:13:41 - Hello] You must restart adb and Eclipse.

[2013-10-16 20:13:41 - Hello] Please ensure that adb is correctly located at 'E:\Android\..........."


百度上很多方法是说杀死豌豆夹或者手机助手之类的adb.exe进程就可以.但我的进程里没有发现adb.exe.


2. 解决方法:
   很明显,是因为在对应的文件夹下找不到adb的问题。
   将android-sdk-windows/platform-tools和android-sdk-windows/tools都加到环境变量中去。
 (我的电脑-右键-高级-环境变量-classpath(或者path,我的做法是加到path中))


如果问题还没有解决,那就看看你手机里是不是有sjk_daemon.exe这样的进程 ,如果 有,也杀了.然后运行eclipse,运行程序,这时候会出现采用AVD的方式.这时候你再把手机设置成手机debug模式,再运行程序,就可以在手机上运行了.

原创粉丝点击