Android Studio 4.0.1 Drops connected device - android-studio

I'm running Android Studio 4.0.1 and when I take a break The connected Devices drop down clears out even though my Android Phone is still connected. Any ideas why?
I have to unplug the device, reconnect and then wait a few seconds before Android Studio agrees the device is available and I can push code to it.
Thanks in advance

Related

How do I keep Android Studio from stopping my app when I close Android Studio?

I think some new update made it so when I close Android Studio, it first stops the app that is running on my phone. I would like this not to happen.
Is there a setting somewhere to make it not do this?
For anyone else who's wondering, I figured it out. You simply have to disconnect the phone from your device first.
For example, if it's plugged into your PC for USB Debugging, simply unplug your phone before closing Android Studio.
Or if you're using Wireless Debugging, disconnect from your phone (or simply turn off Wireless Debugging) before closing Android Studio.

Android Studio stopped recognizing my Redmi as an Android device

I normally use my Redmi 7A to test the applications that I make with Android Studio, but suddenly Android Studio stopped recognizing it as an Android device and only shows it as a USB device, I tried restarting both the pc and the mobile, deactivate and activate the debugging mode, and it should not be a driver problem because until a few days ago I could run the applications perfectly on my device. Additionally I tried to connect two more devices of different brands in debugging mode and it did not recognize them either, someone could tell me what happened with the IDE and how to fix it.An image of what Android Studio shows me

USB debugging problem in Android Studio 3.2.1

I am working with Android studio 3.2.1 windows o/s. My android studio didn't detect any phone(I tried with huwawei y6 and samsung grand prime).But there was message that USB connected.
But can't get the usb debugging request message in my phone and can't detect my phone. I tried with abd drivers also but no solution.screenshot after click run
do you checked the USB debugging checkbox ?
if not :
go to settings on the phone then to About device then tap on Build Number many times after that go back to settings you should find Developer options appeared tap on it then check USB debugging checkbox.
try this if not working tell me there is another things you can do

Android Studio selects wrong target device: always runs app on first selected one

How can I debug other than the first device in Android Studio?
I have two Genymotion devices Nexus 5 and Nexus 6, I can run both successfully but when I try to run/debug app from android studio no matter what device I choose it always runs first selected device.
Initially I thought it is genymotion issue but, it was not the case because same happens if I connect real device. Even though device appears in device chooser dialog but it looks like android studio internally doesn't see it.
Stopping debugging for current device before selecting new device helped me. (Red square)
Here is the solution
First: Go to run configuration in android studio
Then: Select the emulator you want
Finally: Run it
It's a bug in Android Studio, supossedly fixed in 1.5.1 but I have 1.5.1 and the bug is still present. Suggested workaround from Google dev is to "close the debug tab once it is done":
https://code.google.com/p/android/issues/detail?id=195167

Android Studio No devices connected

Running windows 7 and I have just downloaded the latest android studio version and started a project and now I'd like to test the application on my device but Android Studio says on the bottom left "No devices connected". I've tried a couple of things such as:
updating my Samsung S6 edge drivers through device manager, which were updated now.
have debugging mode turned on and USB debugging mode on.
ran 'adb devices' command to list devices but none show up.
downloaded new universal adb drivers.
toggled between MTP and PTP modes.
restarted computer/phone/android studio/ adb tens of times.
deleted phones drivers from device manager and installed again.
re-installed android studio.
probably some other small things too that I can't remember right now.
I'm at a loss as of right now, if someone can help me out I would really appreciate it!

Resources