Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037

第一次run项目的时候Event log疯狂报以下错误:

Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037

网上找了很多,各种提示要我配置adb的环境变量,杀死占用5037端口的线程……
毛用没得……

解决方案:允许Android SDK目录下的可执行文件adb通过防火墙
Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037
至此就可以了,接上手机数据线,运行项目Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037

Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037 YDDUONG 发布了69 篇原创文章 · 获赞 40 · 访问量 2万+ 私信 关注
上一篇:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean


下一篇:InvalidArgumentException : Unable to locate factory with name [default] [App\Article].