Reputation: 456
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.
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
Upvotes: 15
Views: 14740
Reputation: 3
In my case I had already restarted and adb was not running.
Cold booting worked for me.
In the device manager tab click the 3 dots and then cold boot.
Upvotes: 0
Reputation: 61
On linux, you can try close AndroidStudio, then delete the build folder.
./app/build
Upvotes: 0
Reputation: 45
what worked for me is:
Upvotes: 0
Reputation: 23
A similar error for me occured when I connected my actual phone, a Google Pixel 5. But maybe this helps someone.
In my case, it was because my phone's USB preferences was set to "No data transfer". After changing it to "File transfer" the devices showed up normally in the drop down.
Upvotes: 0
Reputation: 129
If you're using a VPN, try disabling it first. The VPN might be blocking local network access, preventing ADB from connecting.
Example ADB error message:
cannot connect to daemon at tcp:5037: Connection refused
Upvotes: 1
Reputation: 1
For my case, this issue was caused by adb not starting.
After I opened my terminal and typed adb start-server
, it showed the error:
main.cpp:52 cannot open C:\Users\..\AppData\Local\Temp\adb.log: Permission denied
I found the log file, right click open the properties and uncheck the read-only box then type adb start-server
again in your terminal and then it will work!
Upvotes: 0
Reputation: 2238
None of the previous solutions worked for me.
I'm running in Fedora. SELinux permission do not allow adb to run as non-root when installed in $HOME. Next "fix" worked for me:
$ sudo dnf install android-tools # install adb in /usr/bin/
$ cd $HOME/Android/Sdk/platform-tools
$ rm adb
$ ln -s /usr/bin/adb ./adb
Upvotes: 1
Reputation: 8047
On a Mac I was missing step 3.
adb kill-server
As a last resort, reinstall the platform tools.
Upvotes: 0
Reputation: 376
Delete all adb tasks from activityMonitor (macOS) or taskmanager (windows). It will work then
Upvotes: 12
Reputation: 885
I only opened task manager and there were a bunch of adb.exe open so i ended all of them while android studio is running in the background so then adb.exe started again and then i go to android studio and find out that the issue was resolved.
Upvotes: 1
Reputation: 631
When using Android Studio, or any other IDE which use their own ADB, it is necessary to set Genymotion to use the correct ADB instead of its inbuilt one. It is documented here: https://docs.genymotion.com/desktop/02_Application/#use-third-party-adbsdk
Upvotes: 0
Reputation: 477
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.
Upvotes: 29
Reputation: 81
Go to SDK folder delete platform-tools folder.. invalidate and restart the studio..works for me!
Upvotes: 4
Reputation: 546
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.
AVD
folder to another driver. Then define it on the Environment variableAVD
to C:\Users\<User>\.android\avd
folder. this folder is accessible for Android studio.adb devices
in cmd promptUpvotes: 0
Reputation: 456
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
Upvotes: 2
Reputation: 1298
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.
Upvotes: 0