简体   繁体   English

亚行没有回应。您可以等待更多,或手动终止“adb.exe”进程并单击“重新启动”

[英]ADB not responding. You can wait more,or kill “adb.exe” process manually and click 'Restart'

I have installed Android Studio. 我安装了Android Studio。 Then I have updated the Android SDK. 然后我更新了Android SDK。 Now when I start Android Studio, this message pops up: 现在,当我启动Android Studio时,会弹出以下消息:

ADB not responding. 亚行没有回应。 You can wait more,or kill "adb.exe" process manually and click 'Restart' 您可以等待更多,或手动终止“adb.exe”进程并单击“重新启动”

The dialog has 3 options: Wait more, Restart and Cancel. 该对话框有3个选项:等待更多,重新启动和取消。 But all of them gives me the same result, ie a message Waiting for ADB appears and I can't do anything with Android Studio. 但是所有这些都给了我相同的结果,即出现等待ADB的消息,我无法对Android Studio做任何事情。

I have to kill the program using windows task manager! 我必须使用Windows任务管理器杀死该程序! I'm using windows 7. 我正在使用Windows 7。

Can anyone help me on this? 谁可以帮我这个事?

Go to

Tools > Android > (Uncheck) Enable ADB Integration (if studio hangs/gets stuck end adb process manually) 工具> Android>(取消选中)启用ADB集成 (如果工作室挂起/卡住结束adb进程手动)

then, 然后,

Tools > Android > (Check) Enable ADB Integration 工具> Android>(检查)启用ADB集成

On my macbook pro, i was occasionally getting this in Android Studio. 在我的Macbook专业版中,我偶尔会在Android Studio中获得此功能。 The following resolved it for me: 以下为我解决了这个问题:

Open up a Terminal and, instead of using 'adb kill-server', use this: 打开一个终端,而不是使用'adb kill-server',使用这个:

$ killall adb

wait a minute and it looks like Android Studio automatically restarts adb on it's own. 等一下,看起来Android Studio会自动重启adb。

From the command prompt run the command adb kill-server . 从命令提示符运行命令adb kill-server This will shutdown ADB and android studio or Eclipse if you were to use that, would show Waiting for ADB as you said. 如果你要使用它,这将关闭ADB和android studio或Eclipse,如你所说,将显示Waiting for ADB。

Once ADB has shutdown down run adb start-server or run adb devices which will automatically start the adb service and show that your android emulator or development devices has successfully connected. 一旦ADB关闭运行adb start-server或运行adb devices ,它将自动启动adb服务并显示您的Android模拟器或开发设备已成功连接。

If you are suffering from "ADB not responding. If you'd like to retry, then please manually kill 'adb' and click 'Restart' or terminal appear Syntax error: “)” unexpected" then perhaps you are using 32bit OS and platform-tools has updated up 23.1. 如果你正在遭受“亚行没有回应。如果你想重试,那么请手动杀死'adb'并点击'重启'或终端出现语法错误:”)“意外”然后你可能正在使用32位操作系统和平台-tools已更新23.1。 The solution is to go back to the platform-tools 23.0.1. 解决方案是返回平台工具23.0.1。

You can download the platform-tools 23.0.1 for Linux here , for windowns here and Mac here 您也可以下载平台工具23.0.1用于Linux 这里 ,为WINDOWNS 这里和Mac 这里

After the download, go to your sdk location > platform-tools folder to delete old platform-tools in sdk and paste down into the downloaded one. 下载后,转到sdk location> platform-tools文件夹,删除sdk中的旧平台工具,然后粘贴到下载的平台工具中。

Woohooo ... it should work. 哇哦......应该有用

This is a bug with latest ADT. 这是最新ADT的错误。

For me, on Windows 7, killing the ADB server and restarting it via command line did not help. 对我来说,在Windows 7上,杀死ADB服务器并通过命令行重新启动它并没有帮助。 It would not start up successfully. 它不会成功启动。

>adb kill-server

>adb start-server
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *

So killing the adb.exe process via Task Manager was actually the easiest solution that case. 因此,通过任务管理器杀死adb.exe进程实际上是最简单的解决方案。

Check if any service is listening on port 5037, and kill it. 检查是否有任何服务正在侦听端口5037,并将其终止。 You can use lsof for this: 您可以使用lsof:

$ lsof -i :5037
$ kill <PID Process>

Then try 然后试试

$ adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

This solved my problem. 这解决了我的问题。

This issue could be because adb incompatibility with the newest version of the platform SDK. 此问题可能是因为adb与最新版本的平台SDK不兼容。

Try the following: 请尝试以下方法:

  1. If you are using Genymotion, manually set the Android SDK within Genymotion settings to your sdk path. 如果您使用的是Genymotion,请将Genymotion设置中的Android SDK手动设置为您的sdk路径。 Go to Genymotion -> settings -> ADB -> Use custom SDK Tools -> Browse and ender your local SDK path. 转到Genymotion - >设置 - > ADB - >使用自定义SDK工具 - >浏览并加入本地SDK路径。

  2. If you haverecently updated your platform-tools plugin version, revert back to 23.0.1. 如果您最近更新了platform-tools插件版本,请返回23.0.1。

Its a bug within ADB, one of the above must most likely be your solution. 它是亚行内部的一个错误,其中一个最有可能是您的解决方案。

I ran into this problem and tried a number of solutions on my Mac without any success. 我遇到了这个问题,并在我的Mac上尝试了许多解决方案而没有任何成功。 I finally got to work with the commands below: 我终于开始使用以下命令了:

$ rm -rf ~/.android
$ killall adb
$ adb devices

Note that rm -rf ~/.android will remove any AVDs that you have configured, so don't take this step lightly. 请注意, rm -rf ~/.android将删除您已配置的任何AVD,因此请勿轻易执行此步骤。 Personally I had to though and I'm not sure why. 我必须个人而且我不确定为什么。 Hopefully this helps someone. 希望这有助于某人。

1.if your phone system is over 4.2.2 , there will be 1.如果您的电话系统超过4.2.2,则会有 在此输入图像描述

2.disconnect the USB and try again or restart your phone 2.断开USB连接,然后重试或重启手机

3.After after all try , it didn't work. 3.经过一切尝试,它没有奏效。 It may be a shortage power supply so try other usb interface on your computer. 它可能是一个短缺的电源,所以尝试在您的计算机上的其他USB接口。

I solved the problem doing the first step . 我解决了第一步的问题。 anyway have try. 无论如何都试过。

我有这个问题,并通过这种方式解决了...我的电脑中有一个使用adb的应用程序...我试图禁用它但仍然我的android工作室的adb在unistall应用程序和问题解决后出现问题。

如果您需要使用一个命令终止Windows上的所有adb进程,您可以按如下方式执行:

taskkill /F /IM adb*

I had the same problem. 我有同样的问题。 I have restarted ADB in any possible way, I have killed the process and restarted the PC with no results. 我已经以任何可能的方式重新启动了ADB,我已经杀死了该进程并重新启动了PC而没有任何结果。

Then I found this plugin. 然后我找到了这个插件。 Just download and install it in your Android Studio IDE. 只需下载并安装在Android Studio IDE中即可。 Under Tools -> Android you have a menu ADB Idea. 在工具 - > Android下,您有一个菜单ADB Idea。 Here you can kill, start, restart, clean ADB. 在这里你可以杀死,启动,重启,清理亚行。

None of the above helped me completely. 以上都没有完全帮助我。 Although Oventoaster made me think. 虽然Oventoaster让我思考。 I had a couple of adb on my system. 我的系统上有几个adb。 Removed them almost all. 几乎全部删除了它们。

I am running android studio on ubuntu 14.04 64 bit. 我在ubuntu 14.04 64位上运行android studio。

So I checked manually /home/xxxxx/Android/Sdk/platform-tools/adb 所以我手动检查了/ home / xxxxx / Android / Sdk / platform-tools / adb

where xxxxx was my linux username 其中xxxxx是我的linux用户名

this gave 这给了

/home/xxxxx/Android/Sdk/platform-tools/adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory / home / xxxxx / Android / Sdk / platform-tools / adb:加载共享库时出错:libstdc ++。so.6:无法打开共享对象文件:没有这样的文件或目录

https://stackoverflow.com/a/27415749/4453157 https://stackoverflow.com/a/27415749/4453157

solved it for me. 为我解决了。

If the above CMD command option is not working and you cannot make it work in any other way then follow this below. 如果上面的CMD命令选项不起作用,并且您无法以任何其他方式使其工作,请按照以下方式操作。

Click on below link 点击下面的链接

http://adbshell.com/downloads http://adbshel​​l.com/downloads

and download the first link with name ADB Kits ( contains adb.exe and necessary .dll files). 并下载名为ADB Kits的第一个链接(包含adb.exe和必需的.dll文件)。

After downloading replace these files with the ones in the path 下载后,将这些文件替换为路径中的文件

Android/Sdk/platform-tools/ 安卓/ SDK /平台工具/

Now click on adb.exe and it will open cmd and will start the adb server. 现在点击adb.exe,它将打开cmd并启动adb服务器。

Now it will detect the device and no problem. 现在它将检测设备,没有问题。 OOOOOllllaaaaa..... OOOOOllllaaaaa .....

If the Problem persists again then do the same... save the folder somewhere.... just replace files... it will detect the device automatically then 如果问题仍然存在,那么就这样做......将文件夹保存到某个地方....只需替换文件......它会自动检测设备

I run netstat -nao | findstr 5037 我运行netstat -nao | findstr 5037 netstat -nao | findstr 5037 in cmd. netstat -nao | findstr 5037 in cmd。

在此输入图像描述

As you see there is a process with id 3888. I kill it with taskkill /f /pid 3888 if you have more than one, kill all. 如你所见,有一个id为3888的进程。如果你有多个,我用taskkill /f /pid 3888杀死它,全部杀死它。

在此输入图像描述

after that run adb with adb start-server , my adb run sucessfully. 之后用adb start-server运行adb,我的adb运行成功。

在此输入图像描述

我在Windows 8上遇到了这个问题,但是我通过使用SDK Manager更新所有Android Studio的插件,然后重新启动计算机来解决了这个问题。

另一个:您可能希望避免同时运行Eclipse和Android Studio,这对我有所帮助。

I had this problem on Windows 7. My situation is this through SDK Manager. 我在Windows 7上遇到了这个问题。我的情况是通过SDK Manager。 I only download API 19 but I had not downloaded related Android SDK build-tools. 我只下载API 19,但我没有下载相关的Android SDK构建工具。 So it occur this problem. 所以它出现了这个问题。

I went through SDK Manager download build-tools 19 to fix it. 我通过SDK Manager下载build-tools 19来修复它。 Hope to give you help. 希望能给你帮助。

Faced this issue on Mac: 在Mac上面对这个问题:

I have tried different solution, But below works for me - 我尝试了不同的解决方案,但下面适用于我 -

  1. Uninstall " Vysor " plugin if you have installed for Chrome 如果您已安装Chrome,请卸载“ Vysor ”插件
  2. Under Home folder > find .Android folder and move to trash 在主文件夹>查找.Android文件夹并移至垃圾箱
  3. Goto, Android sdk > delete/move to trash platform-tools folder 转到,Android sdk>删除/移动到垃圾平台工具文件夹
  4. Again install/download from Android SDK Manager 再次从Android SDK Manager安装/下载
  5. Open terminal - 开放式终端 -
    • adb kill-server
    • adb start-server
  6. Check adb devices , It will work and display you all connected devices. 检查adb devices ,它将工作并显示所有连接的设备。

Hope it helps ! 希望能帮助到你 !

there seems to be about a million reasons this bug happens, but for me (running on ubuntu), it was openvpn running in the background that caused it. 似乎有大约一百万个这个错误发生的原因,但是对于我(在ubuntu上运行),它是在后台运行的openvpn导致它。

I killed the openvpn service and no more issues. 我杀了openvpn服务,没有更多的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 亚行没有回应。 如果您想重试,请手动杀死“ adb.exe”并点击“重新启动” - ADB not responding. If you'd like to retry, then please manually kill “adb.exe” and click 'Restart' 亚行没有回应。 你可以等待更多,或杀死“adb.exe”... windows 8 - ADB not responding. You can wait more, or kill “adb.exe” … windows 8 Windows 上的 Android Studio:ADB 没有响应。 如果您想重试,请手动杀死“adb.exe”并单击“重新启动” - Android Studio, on Windows: ADB not responding. If you'd like to retry, then please manually kill “adb.exe” and click 'Restart' 亚行没有回应。 如果您想重试,请手动杀死“ adb”并在Ubuntu中单击“重新启动” - ADB not responding. If you'd like to retry, then please manually kill “adb” and click 'Restart' in Ubuntu Android Studio-ADB没有响应。 如果您想重试,请手动杀死“ adb”并点击“重新启动” - Android Studio - ADB not responding. If you'd like to retry, then please manually kill “adb” and click 'Restart' 亚行没有回应。 如果您想重试,请手动杀死“ adb”并点击“重新启动” - ADB not responding. If you'd like to retry, then please manually kill “adb” and click 'Restart' adb.exe 没有响应。手动杀死 - adb.exe not responding.kill manually 如何在Windows上安全终止Adb.exe进程 - How to safely kill adb.exe process on windows adb.exe会产生许多流程实例 - adb.exe spawning many process instances 如果需要,adb.exe 启动服务器失败,请手动运行 - adb.exe start server failed-run manually if neccessary
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM