adb.exe的问题-AdbHostServer.cpp:93:无法连接到端口5037上的adb守护程序 [英] Problems with adb.exe - AdbHostServer.cpp:93: Unable to connect to adb daemon on port: 5037
问题描述
我对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:无法连接到adb 端口上的守护程序:5037
Emulator: emulator: ERROR: AdbHostServer.cpp:93: Unable to connect to adb daemon on port: 5037
我用adb.exe的鲁特打开了一个终端:C:\Users\Christian\AppData\Local\Android\Sdk\platform-tools
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,我得到了:
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
我使用系统映像:Pie 28 x86 Android 9.0模拟Nexus 5X API 28.
I emulate Nexus 5X API 28 with System Image: Pie 28 x86 Android 9.0.
我下载了最新版本 for Windows中的abd.exe
I download the last version of abd.exe in for Windows
我还重新安装了Android Studio和仿真器,但错误仍然出现.
I also reinstalled the Android Studio and the emulator, but the error still appears.
我该如何解决?
推荐答案
您需要先运行adb start-server
,然后再运行emulator -avd <avd_name>
You need to first run adb start-server
and then run emulator -avd <avd_name>
这篇关于adb.exe的问题-AdbHostServer.cpp:93:无法连接到端口5037上的adb守护程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!