今天一不小心遇到个问题,问题截图如下
我试了N种google来的方法,都失效,现在把我的解决方法告诉大家,希望能帮到大家。
首先,我先罗列下我搜到的方法,大家也可以尝试。
1,关闭eclipse并在进程中杀掉adb.exe,然后重启。
2,如有真机连接,拔掉真机,重复1的步骤,
3,关掉eclipse,然后在命令行运行如下命令
adb kill-server
adb start-server
然后重启eclipse
还有别的类似的办法就不再这里多说了,
我的问题最根本其实是端口5037被占用,在命令行中运行netstat -a,会出现一堆东西,找找是否有关于5073端口的东西,经我验证我的是有东西的,所以我的端口被用,但是我已经将adb.exe杀掉,所以是别的东西占用了这个端口,回忆了下,最近有什么操作和之前不同,就是用豌豆荚连了下真机,那有可能就是豌豆荚占用的,我先关闭eclipse,我在进程中杀掉了豌豆荚,然后再重启eclipse,之后命令行执行adb reboot;出现下列情况
可以看出端口回来了,daemon 打开成功,而之前报错时在控制台中daemon是打开失败,现在问题基本解决了,这里出现了一个error,不要担心,只是没检测到设备,可能是没有运行模拟器或者没连真机导致的,现在就能运行项目检测了,我想问题应该能解决了。根据我的情况,第二天重新开机运行项目后又出现同样的问题,进程中又多了豌豆荚,但是我并没有打开豌豆荚,所以建议不要将豌豆荚设为开机启动。问题就能解决了。
如果有和我一样用豌豆荚安装apk的开发者遇到这样的问题可以尝试这种方法,最后我还是建议大家安装apk时还是最好用命令行push或者instal,其实我主张不用此类第三方软件,有时最原始的方法是最方便的。
分享到:
相关推荐
如果出现以下问题则有可能是被占用了...You must restart adb and Eclipse. Please ensure that adb is correctly located at 'D:\Program Files\Android\android-sdk\platform-tools\adb.exe' and can be executed.
运行Android程序时,可能会出现 The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse... 的错误
he connection to adb is down, and a severe error has occured.[2014-01-14 21:42:11 - myBluetooth] You must restart adb and Eclipse.[2014-01-14 21:42:11 - myBluetooth] Please ensure that adb is ...
1.遇到问题描述: ... [2012-07-18 16:18:26 - ] You must restart adb and Eclipse. [2012-07-18 16:18:26 - ] Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\
[2016-07-10 17:09:11 - QtActivity] You must restart adb and Eclipse. [2016-07-10 17:09:11 - QtActivity] Please ensure that adb is correctly located at 'D:\Android\sdk\platform-tools\adb.exe' and can ...
经常遇到 Please ensure that adb is correctly located at ‘D:\java\sdk\platform-tools\adb.exe’ and can be executed. ... [2012-07-18 16:18:26 – ] You must restart adb and Eclipse. [2012-07
If you are running m2eclipse 0.9.8 or 0.9.9 you must either uninstall m2eclipse from your Eclipse installation or start with a fresh installation of Eclipse. To install this plugin in the Eclipse IDE...
ADB Clear App Data and Restart ADB Start App With Debugger ADB Restart App With Debugger ADB Grant/Revoke Permissions ADB Enable/Disable Wi-Fi ADB Enable/Disable Mobile Data 内附插件官方地址便于更新。
If you are running m2eclipse 0.9.8 or 0.9.9 you must either uninstall m2eclipse from your Eclipse installation or start with a fresh installation of Eclipse. To install this plugin in the Eclipse IDE...
Restart ADB server with one click(一键重启adb服务) Create and export logcat to desired locations (生成或导出log到其他地址) Install a APK (安装apk) Uninstall a APK (卸载apk) Show current ADB ...
安装步骤: Download and unzip the JD-Eclipse Update Site, Launch Eclipse, Click on "Help > Install New Software...", Click on button "Add..." to add an new repository, ... and restart Eclipse.
ADB,即 Android Debug Bridge,它是 Android 开发/测试人员不可替代的强大工具,也是 Android 设备玩家的好玩具。 注:有部分命令的支持情况可能与 Android 系统版本及定制 ROM 的实现有关。 基本用法 命令语法 ...
jd-eclipse-site-2.0.0,Eclipse中查看class源码的插件 安装: Build or download & unzip "jd-eclipse-2.0.0.zip", Launch Eclipse, ...Click on "Help > Install New Software...", ... and restart.
下载并并解压包,将里面的jar包拷到eclipse的插件(plugins)目录下,然后重启(Restart)Eclipse ,使用快捷键 " Ctrl + alt + z ",进入到Eclipse 的全屏模式。 注意:如果你启动了QQ客户端,因为QQ的热键也是 " ...
详细解释了 TortoiseSVN 的安装,使用。 (语言包使用,检查修改更新锁定工作副本等)
激活虚拟环境,启动jupyter notebook ...解决办法 1.重新打开cmd ,输入jupyter kernelspec list,查看你的jupyter里有几个kernel,一般如果没额外安装过,会只显示一个path。 2.再次激活虚拟环境(activ
需要基于Windows and .Net Framework 3.5图形化adb工具。 The tool supports tons of functions, such as(特性): Show current attached devices(显示目前连接的设备) Upload a file to the device (adb push)...
It is also not clear when changing this option should take effect - instantly or on restart? In the end I injected in an up-to-date version of the descriptor.proto file into the plugin jar under .p2...
2.再删除eclipse的configuration目录下org.eclipse.update文件 3.重启eclipse,点击菜单栏中File->Restart 4.下载jad的可执行文件,解压后放在某一磁盘中.链接:http://varaneckas.com/jad/ 5.打开Eclipse,prefrence...