无法创建调试桥:无法启动adb服务器:无法检测adb版本 [英] Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version

查看:660
本文介绍了无法创建调试桥:无法启动adb服务器:无法检测adb版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在打开项目时当前遇到此问题:

I am currently having this problem when I am opening a project:

事件日志中显示的错误:

The errors showing in Event Log :

无法检测adb版本,退出值:0xc0000409,adb输出:adb.exe F 11-11 09:55:06 17768 944 fdevent_poll.cpp:64]无法创建fdevent中断套接字对:无效的参数

Unable to detect adb version, exit value: 0xc0000409, adb output: adb.exe F 11-11 09:55:06 17768 944 fdevent_poll.cpp:64] failed to create fdevent interrupt socketpair: Invalid argument

事件日志中显示的错误:

The errors showing in event Log:

仿真器:仿真器:错误:AdbHostServer.cpp:93:无法连接到端口5037上的adb守护程序

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

推荐答案

对于此问题,我有2种可能的解决方案:

I got 2 possible solutions for this problem:

(1st):下载Revo Uninstaller并从中卸载Android Studio. Revo是功能强大的工具,可删除所选软件的所有文件,包括程序数据缓存文件以及所有其他设置和存储库. 之后,重新安装Android Studio,并在安装过程中选择不导入设置".

(1st) : Download Revo Uninstaller and uninstall Android Studio from it. Revo is a powerful tool which removes all the files of the selected software including program data cache files and and all remaining settings and repositories. After that reinstall Android Studio and select "do not import settings" during the installation.

Revo Installer Download Link :: (https://www.revouninstaller.com/revo-uninstaller-free-download/)

如果不起作用,唯一剩下的解决方案是::

If it doesn't work the only remaining solution is ::

(第二个):转到设置"/更新和安全性"/恢复"/重置" 您的电脑.选择保留我的文件并重置它的选项.不用担心 关于其他硬盘数据,它将仅重置所有程序 您的C盘,并且还将保存所有文档文件,下载文件, 视频和图像.

(2nd) : Go to Settings / Update and Security / Recovery / And reset your pc. Select the option keep my files and reset it. Don't worry about your other hard disk data it will only reset all the programs in your C drive and will also save all the files of documents, downloads, videos and images.

(我首先尝试了第二个选项,它对我有用)

(I tried the second option first and it worked for me)

首先出现此问题的原因是防病毒趋向于 删除临时文件,Android Studio将其模拟器文件保存在临时文件中 文件夹.要解决它,只需转到您的防病毒设置并搜索 添加排除"选项,并在其中添加以下4个文件夹:

The problem occurred in the first place because antiviruses tend to delete temp files and android studio saves its emulator files in temp folder. To solve it just go to your antivirus settings and search for "add exclusion" option and add these 4 folders there:

(instead of rajhr open the folder with your user name)

1 .  C:\Users\rajhr\.android   
2 .  C:\Users\rajhr\.AndroidStudio3.5 

3 .  C:\Users\rajhr\AppData\Local\Android

4 .  C:\Users\rajhr\AppData\Local\Temp\AndroidEmulator

并将它们添加到Windows Defender设置中: 1.打开Windows Defender 2.进入防火墙和网络保护 3.选择允许应用程序通过防火墙,然后在其中添加4个文件夹.

And also add them to windows defender Settings : 1. Open windows defender 2. Go to firewall and network protection 3. Select allow app through firewall and add the 4 folders there.

希望答案能帮助您,这是我的第一个StackOverflow答案.

Hope the answer helps you btw this is my first StackOverflow answer.

这篇关于无法创建调试桥:无法启动adb服务器:无法检测adb版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆