问题描述
我试图从的IntelliJ我的关系5安装一个应用程序,并在第一次我碰到一个错误说
I was trying to install an app on my nexus 5 from intellij and for the first time i get an error saying
"DeviceMonitor: Adb rejected connection to client '5081': closed"
我试图重新启动我的亚行重新启动计算机,禁用,启用Android的调试同步摇篮。奇怪的是,当我尝试在虚拟设备上运行它它的工作原理。任何人有一个想法?下面是完整的错误code:
I tried restart my adb restart computer, disable, enable android debugging sync gradle.The weird thing is that when i try running it on a virtual device it works.Anyone has an idea?Here is the full error code :
设备监视器:亚洲开发银行拒绝连接到客户端的5081:封闭 设备监视器:亚洲开发银行拒绝连接到客户端的5064:封闭 设备监视器:亚洲开发银行拒绝连接到客户端的4962:封闭 设备监视器:亚洲开发银行拒绝连接到客户端的5081:封闭 设备监视器:亚洲开发银行拒绝连接到客户端的5064:封闭 设备监视器:亚洲开发银行拒绝连接到客户端的5064:封闭 设备监视器:亚洲开发银行拒绝连接到客户端的3483:封闭 设备监视器:亚洲开发银行拒绝连接到客户端的3483:关闭
的logcat显示什么,我尝试在终端亚行logcat运行它,它表明无论是正常的。
logcat shows nothing, i tried running it in terminal "adb logcat" and it showed normal either.
推荐答案
我只是有这个问题为好。关闭并重新启动Android的工作室没有任何影响。
I just had this problem as well. Closing and re-launching Android Studio had no effect.
我的解决方案是执行以下命令在终端窗口:
The solution for me was to execute the following commands in a terminal window:
adb kill-server
adb start-server
在那之后,我的Android设备连接正常。
After that, my Android device connected as normal.
这篇关于安卓:亚洲开发银行拒绝连接到客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!