简体   繁体   中英

ADB not responding. If you'd like to retry, then please manually kill “adb.exe” and click 'Restart'

I am a newbie and want to learn android. However, I face difficulties during installation of android studio.

I have installed android studio correctly but when I want to run a Hello World in my android device, it shows

ADB not responding. If you'd like to retry, then please manually kill "adb.exe" and click 'Restart'

I have searched it from the Internet but it still cannot solve the problem, what can I do to solve it?

I've found the answer to this. This had been plaguing me for days, but so happy to have this fixed.

When I go to task manager the process adb.exe was constantly restarting itself. This is what was causing the issue (for me).

Go to Tools -> Android -> Enable ADB entegration. Untick this. Make sure its status appears as unticked. Now go to task manager and killed the process adb.exe, it will not restart itself this time. Now click run, hey presto, ADB runs. Whoop de doo.

Here is what worked for me on Ubuntu: I simply removed the file /tmp/adb.log

sudo rm /tmp/adb.log

Hope it helped. Cheers.

You should first try stopping adb and then restarting it.

Use this command:

adb kill-server

followed by:

adb start-server

On Mac OSX: If the adb process needs to be killed, you can use ps to show all processes with the following command, (pipe through grep to find it easier)

ps aux | grep adb

You can kill it with the following command, using the process id of adb from the previous ps command.

kill -9 <process id>

you need platform-tools_r23.0.1-linux.zip . Url for it from google's repository is:

https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip

Go into your android-sdk-linux directory, I deleted the platform-tools directory (but I think that's unnecessary) and unzip'ed the platform-tools zip there. The SDK updater correctly shows 23.0.1 is installed at this point.

all will work properly

one can find detailed discussion about this issue here

I had the problem because the project was not built and showed an error as follows

Error:Error: Cannot run program "/path/to/Android/Sdk/build-tools/21.1.2/aapt": error=2, No such file or directory

I solved the problem by running those commands

sudo apt-get install lib32stdc++6 sudo apt-get install lib32z1

Ubuntu can't run the aapt on 64 bit before installing this packages

Thanks to https://stackoverflow.com/a/27734148/2119981

我解决了问题。打开cmd并输入netstat -aon|findstr 5037 findstr5037。如果有进程使用该端口,则应将其杀死。您可以获取pid并在任务管理器中找到该进程。

I Battled with this problem for a couple of days (nearly drove me nuts) and every solution I found failed to help me. Till I tried this:

(On Mac)

I uninstalled Android Studio (moved it from Applications to Trash).

Restarted my Mac.

Reinstalled Android Studio (moved it back from Trash to Applications).

And everything was back to normal.

I didn't find adb.exe in the task manager so i did the following and it worked fine after that

  1. I closed the emulator and removed my phone.
  2. restart the windows.
  3. connect the usb device and then i run the application.

转到工具->安卓->启用ADB集成,取消选中它,然后按运行(您将得到一个错误),现在重新选择它并按运行,它将起作用。

Open "Android Monitor" window at the bottom of Android Studio, there will be some error info of the problem.

And my problem hint is "no permission to access /tmp/adb.1001.log".

Just remove the file, the problem will been resolved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM