After upgrading Android Studio from Jellyfish to Koala on Windows, the IDE intermittently loses connection to attached devices. This makes it impossible to use the debugger. Is there a way to fix this other than reverting to Jellyfish?
Steps to reproduce:
1. Connect phone via USB
2. Launch project in Android Studio
3. See the device show up in the upper right
of the Android Studio window (image attached)
4. Launch app with "Run->Debug App"
5. Waiting for debugger to attach, notice the device name no longer appears and
instead the IDE says "No devices" where the device name used to be
6. Notice error in lower left of IDE: "Debugger process finished with exit code 1"
7. Notice app runs as expected on the device
2
Answers
Try using the jellyfish version of Android Studio instead of the Koala version, which causes errors and wastes development time. I was able to connect my device and use Jellyfish instead of Koala.
Android Studio Archives
and try again
I solved this updating platform-tools to latest version (In my case, latest is 35.0.2 jul/2024).
https://developer.android.com/tools/releases/platform-tools
Replace in AppDataLocalAndroidSdk