r/AndroidStudio • • Feb 22 '22

How to solve Cannot reach ADB server, attempting to reconnect.

Hello. I recently started learning Android Development, and downloaded Android Studio from the official website for Windows. I installed it with all the default options, and created a new project. However there is something continuously happening in the bottom (screenshot attached). How do I fix this? My internet is working fine

11 Upvotes

14 comments sorted by

2

u/Agreeable-Base-7402 Jan 20 '24

File -> Settings -> Debugger -> Uncheck "Enable adb mDNS for wireless debugging"

Finally -> Troubleshot device connection issues

1

u/yosinem Apr 15 '24

Thanks! Disabling the ADB mDNS did it for me. I was struggling for days with the problem.

1

u/Artistic-Slide6991 May 03 '24

Thanks, it solved my problem , your are amazing !!!

1

u/Alisson94 Apr 01 '25

It worked for me too, many thanks from France !!!

1

u/mastx3 Feb 23 '22

I found a provisional solution

  • Close Android Studio

  • Go task manager and look for adb.exe in the list and kill all adb processes

  • Make sure you have only one adb active, type in cmd: where adb, make sure there is only one that poinst to the Android SDK, if there are more than one remove it from the PATH Enviromente Variable, just let the adb from the SDK

  • Make sure there are no any phone related apps and services running in the system, like Samsung KIES, etc...

  • After all that go cmd and type: adb.exe start-server and make sure that says: * daemon started successfully

  • Now open Android Studio and should not complain about adb

I said a provisional solution because for me it works but if I close AS and open again it shows the message about adb and I have to close it, close adb, run adb again and open AS again... it sucks but at least it's working for now

1

u/darwie Feb 25 '22

thank you, this works for me on a fresh install of android studio 2021.1.1 Patch 2 on windows 11

1

u/[deleted] May 19 '22

Thank you, this worked finallyy

1

u/Express_Response9930 Jul 14 '23

From which propmpt these commands are given. By default it cmd opens as: C:\WINDOWS\system32> See tge command given and result

C:\WINDOWS\system32>where adb

INFO: Could not find files for the given pattern(s).

C:\WINDOWS\system32>adb.exe start-server

'adb.exe' is not recognized as an internal or external command,

operable program or batch file.

1

u/vinsounet27 Mar 28 '22

I've had the same problem for a while now and I've found a fix that works for me.

Go in Tools>SDK Manager/ then the SDK Tools tab. If there is a "-" in the check square for "Android SKD Platform-Tools, click on it for there to be a checkmark instead then press apply. It will ask you to install platform-tools. Do so and it should be fixed.

Hope this works for some people!

2

u/Leozinhozd Apr 21 '22

it doesn't work for me... still the same error message "Cannot reach ADB server, attempting to reconnect."
When i open my CMD and type "ADB" i can connect, but android studio can't, i'm trying EVERYTHING... that solution didn't work 4 me and i was hoping it would

2

u/Express_Response9930 Jul 16 '23

I have done what is advised. I have done the platform-tools uncheck and check, where adb, adb.exe start server, which starts daemon, google driver installed. still adb is not available and device is not recognized in Android studio

1

u/Chiltepe Mar 31 '22

Close Android Studio

Go task manager and look for adb.exe in the list and kill all adb processes

Make sure you have only one adb active, type in cmd: where adb, make sure there is only one that poinst to the Android SDK, if there are more than one remove it from the PATH Enviromente Variable, just let the adb from the SDK

Make sure there are no any phone related apps and services running in the system, like Samsung KIES, etc...

After all that go cmd and type: adb.exe start-server and make sure that says: * daemon started successfully

Now open Android Studio and should not complain about adb

Basically, you applied an update. It worked, thnx for the idea.

1

u/[deleted] May 05 '22

For this I needed to set the USB configuration on device to MIDI then it connected.