Reputation: 35938
When I run my app from AndroidStudio 0.4.3 using Run
I see Choose Device
which has two sections choose a running device
or Launch Emulator
. I don't have a running emulator at the moment so I click the ...
to launch AVD manager and start an emulator. At this point I see that under choose a running device
the emulator I just launched shows up but its listed as offline
.
In the past the offline
status went away when the emulator was fully up and running. However, now I've noticed that when the emulator is launched fully, it no longer appears in choose a running device
.
I feel like I'm always playing cat and mouse game with android studio picking up the emulator. Is there a better way to do this? Am I missing something?
Upvotes: 30
Views: 35794
Reputation: 1
The fix for the issue in the current Android Studio 2024.2.2 is to go to File > Invalidate Caches > Invalidate Caches and Restart
Upvotes: 0
Reputation: 664
Turning on 'USB Debugging' from within Developer Options did the trick for me.
Upvotes: 0
Reputation: 9
add -port 5037 on ../[some_emulator]/emu-launch-params.txt file & try again...
like image
Upvotes: 0
Reputation: 91
In Android Studio Arctic Fox (2020.3.1) it helped me to cold boot the device.
Upvotes: 0
Reputation: 51
inside AVD manager, select your virtual devices, then 1 stop, 2 wipe user data, 3 cold reboot, works for me.
Upvotes: 3
Reputation: 7143
Wipe Data and restarting emulator helped me, hope this helps to someone.
Upvotes: 7
Reputation: 2843
Try to kill the adb server and restart it.
Locate your adb binary (linux/osx) or adb.exe (windows) and do:
adb kill-server
adb start-server
this should fix your problem
Even if your problem still not solved then Restart emulator.
Upvotes: 29
Reputation: 118
On Windows, running Android Studio with administrator permissions can help (in addition to restarting adb server).
Upvotes: 2
Reputation: 28010
Disable and then Enable ADB Integration
In Android Studio go to
Run your app again. Emulator that was previously missing from Run dialog should be available to be selected upon which to run your app.
Upvotes: 42