简体   繁体   English

亚行没有回应。 如果您想重试,请手动杀死“ adb.exe”并点击“重新启动”

[英]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. 我是新手,想学习android。 However, I face difficulties during installation of android studio. 但是,我在安装android studio时遇到困难。

I have installed android studio correctly but when I want to run a Hello World in my android device, it shows 我已经正确安装了android studio,但是当我想在我的android设备中运行Hello World时,它会显示

ADB not responding. 亚行没有回应。 If you'd like to retry, then please manually kill "adb.exe" and click 'Restart' 如果您想重试,请手动杀死“ adb.exe”并点击“重新启动”

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. 当我转到任务管理器时,进程adb.exe会不断重启。 This is what was causing the issue (for me). 这就是导致问题的原因(对我而言)。

Go to Tools -> Android -> Enable ADB entegration. 转到工具-> Android->启用ADB集成。 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. 现在转到任务管理器并杀死进程adb.exe,这次它不会自行重启。 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 这是在Ubuntu上对我有用的东西:我只是删除了/tmp/adb.log文件

sudo rm /tmp/adb.log

Hope it helped. 希望能有所帮助。 Cheers. 干杯。

You should first try stopping adb and then restarting it. 您应该首先尝试停止adb,然后重新启动它。

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) 在Mac OSX上:如果需要终止adb进程,则可以使用ps通过以下命令显示所有进程(通过grep进行遍历以使其更加容易)

ps aux | grep adb

You can kill it with the following command, using the process id of adb from the previous ps command. 您可以使用前面的ps命令中adb的进程ID,通过以下命令将其杀死。

kill -9 <process id>

you need platform-tools_r23.0.1-linux.zip . 您需要platform-tools_r23.0.1-linux.zip。 Url for it from google's repository is: 来自Google存储库的网址是:

https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip 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. 进入您的android-sdk-linux目录,我删除了platform-tools目录(但我认为这是不必要的),并在那里解压缩了platform-tools zip。 The SDK updater correctly shows 23.0.1 is installed at this point. SDK更新程序正确显示此时已安装23.0.1。

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 错误:错误:无法运行程序“ /path/to/Android/Sdk/build-tools/21.1.2/aapt”:error = 2,没有这样的文件或目录

I solved the problem by running those commands 我通过运行这些命令解决了问题

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

Ubuntu can't run the aapt on 64 bit before installing this packages 安装此软件包之前,Ubuntu无法在64位上运行aapt

Thanks to https://stackoverflow.com/a/27734148/2119981 感谢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) (在Mac上)

I uninstalled Android Studio (moved it from Applications to Trash). 我卸载了Android Studio(将其从“应用程序”移至“废纸rash”)。

Restarted my Mac. 重新启动我的Mac。

Reinstalled Android Studio (moved it back from Trash to Applications). 重新安装了Android Studio(将其从“废纸rash”移回了“应用程序”)。

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 我没有在任务管理器中找到adb.exe,所以我做了以下工作,之后工作正常

  1. I closed the emulator and removed my phone. 我关闭了模拟器并删除了手机。
  2. restart the windows. 重新启动Windows。
  3. connect the usb device and then i run the application. 连接USB设备,然后运行应用程序。

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

Open "Android Monitor" window at the bottom of Android Studio, there will be some error info of the problem. 打开Android Studio底部的“ Android Monitor”窗口,将出现一些有关该问题的错误信息。

And my problem hint is "no permission to access /tmp/adb.1001.log". 我的问题提示是“无权访问/tmp/adb.1001.log”。

Just remove the file, the problem will been resolved. 只需删除文件,问题即可解决。

暂无
暂无

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

相关问题 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 not responding. You can wait more,or kill “adb.exe” process manually and click 'Restart' 亚行没有回应。 你可以等待更多,或杀死“adb.exe”... windows 8 - ADB not responding. You can wait more, or kill “adb.exe” … windows 8 adb.exe 没有响应。手动杀死 - adb.exe not responding.kill manually 如何在Windows上安全终止Adb.exe进程 - How to safely kill adb.exe process on windows 如果需要,adb.exe 启动服务器失败,请手动运行 - adb.exe start server failed-run manually if neccessary adb 在 powershell 中不起作用,但 adb.exe 有效 - adb not working in powershell but adb.exe works
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM