'Android Studio stuck on loading devices

I'm currently running Android Studio Bumblebee 2021.1.1 in windows 10. The problem I have is each time I start android studio the device list is stuck in loading devices.

Stuck In Loading Device

I tried these solutions

android studio device list stuck on loading/51101178

android device list showing in android studio got stuck/65177069

The soulutions provided in the threads sometimes work and sometimes don't but the real problem is even if I did fix it in the run time, The next time I open android studio it's still there.

I already tried updating android studio to latest version, reinstalling android studio, deleting all the caches and plugins and resetting it to default. Completely Deleting Sdk folder and downloading again. But nothing helped I don't know where this problem could be originate from



Solution 1:[1]

After hours of research and try and error I finally figured out what was going on. Turns out my adb configuration was conflicting with genymotion's. Nothing could have done at the side of android studio. I went to the genymotion settings ADB tab and changed from Use Genymotion Android Tools to Use custom Android SDK Tools and it went away at last

Solution 2:[2]

Go to SDK folder delete platform-tools folder.. invalidate and restart the studio..works for me!

Solution 3:[3]

In my case deleting the "platform-tools" folder as Dyenal said didn't work because it said that the folder was open elsewhere (even when I had shut down android studio). If that's your case too, do this.

  1. Close android studio
  2. Go to your task manager
  3. Go to the "Details" tab and look for "adb.exe" as seen in the image below.
  4. Right-click on it and "End task".
  5. Open android studio and pretend you weren't interrupted. Cheers :)

enter image description here

Solution 4:[4]

This is a temporary solution. Open terminal and type adb devices. Once your device starts showing up in terminal, it will start showing up in loading devices too.

Solution 5:[5]

This problem occurs due to Windows folder accessing especially when you change the AVD folder. Windows prevent access to Windows partition root. you have multi options for solving this problem.

  1. Move AVD folder to another driver. Then define it on the Environment variable
  2. Move the AVD to C:\Users\<User>\.android\avd folder. this folder is accessible for Android studio.
  3. Run emulator from device manager, then type adb devices in cmd prompt

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hamed Heidari
Solution 2 Dyenal Dinesh
Solution 3 Chris Barth
Solution 4 Sonal
Solution 5 Abhishek Dutt