adb.exe问题 [英] Problems with adb.exe
问题描述
Android Studio 3.4的adb.exe出现问题。
I have a problem with adb.exe of Android Studio 3.4.
运行模拟器时,出现此错误:
When I run the emulator, I get this error:
仿真器:仿真器:错误:AdbHostServer.cpp:93:无法连接到端口:5037上的adb
守护程序
Emulator: emulator: ERROR: AdbHostServer.cpp:93: Unable to connect to adb daemon on port: 5037
我用adb.exe的鲁特打开了一个终端: C:\Users\Christian\AppData\Local\Android\ \Sdk\平台工具
I opened a terminal with the rute of the adb.exe: C:\Users\Christian\AppData\Local\Android\Sdk\platform-tools
在这里,我尝试使用adb kill-server,然后使用adb start-server,得到的是: / p>
And here I tried with adb kill-server and then adb start-server and I get this:
*daemon not running; starting now at tcp:5037
*daemon started successfully
当我再次运行时,出现相同的错误出现,我在终端中使用命令adb devices来获取此信息:
When i run again the same error appears, i get this in terminal with the command adb devices:
List of devices attached
emulator-5554 offline
我用系统映像模拟Nexus 5X API 28:Pie 28 x86 Android 9.0。
I emulate Nexus 5X API 28 with System Image: Pie 28 x86 Android 9.0.
我也重新安装了Android Studio和仿真器,但错误仍然出现。
I also reinstalled the Android Studio and the emulator, but the error still appears.
我该如何解决?
推荐答案
我在以下事件日志中发生了这种情况条目:
I had this happen with the following Event Log entry:
Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037
所以我以管理员身份打开了命令提示符并运行 netstat -a -b> c:sconnections.txt
并发现以下内容:
So I opened command prompt as administrator and ran netstat -a -b >c:\connections.txt
and found the following:
[Amazon Music Helper.exe]
TCP 127.0.0.1:5037 jbiss-PC:0 LISTENING
[adb.exe]
TCP 127.0.0.1:5037 jbiss-PC:54858 ESTABLISHED
.
.
.
[ss_conn_service.exe]
TCP 127.0.0.1:51146 jbiss-PC:5037 CLOSE_WAIT
.
.
.
[adb.exe]
TCP 127.0.0.1:54858 jbiss-PC:5037 ESTABLISHED
因此,我关闭了Amazon Music Helper,关闭并重新启动了Android Studio,然后启动了模拟器。现在可以使用了。我不确定为什么今天开始遇到这个问题,我假设以前曾涉及过Amazon Music Helper,并且状态显示为adb.exe的ESTABLISHED,但我确实这样做了,并且至少现在为止,该过程已将其清除。
So I shut down Amazon Music Helper, shut down and restarted Android Studio and then launched the emulator. It works now. I'm not sure why I started having this problem today, I assume that Amazon Music Helper was involved previously and the status indicated ESTABLISHED for adb.exe, but I did, and this process cleared it up for now at least.
这篇关于adb.exe问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!