Reputation: 1203
I am a newbie in Android Studio and I can't test my programs. Before using this I succesfully tested my android programs in eclipse.
After reading some questions in similar context I created a new emulator from
Tools-android-AVD Manager
But when I run the program it says No USB devices or running emulators detected(in select deployment target). How can I fix this
Upvotes: 5
Views: 29798
Reputation: 160
Go to File -> Project structure -> Project -> select SDK version. Then you can see emulator name in android studio
Upvotes: 5
Reputation: 67
Instead of trying wipe data option, I tried Cold Boot Now option. It worked for me.
Upvotes: 7
Reputation: 1
This steps work for me
Upvotes: 0
Reputation: 1071
You need to try to find a very small fragment (small Emu rectangle right in the center of the screen) (minimized emulator window) and enlarge it in all directions :)
Upvotes: 0
Reputation: 12347
thanks for Yogesh Kuma
Sometimes wipe data helped.
if emulator launched you must close emulator,
open device manager -> open menu needed emulator -> wipe data-> you can launch emulator
Upvotes: 0
Reputation: 12073
On Mac OS, I ran into this when JAVA_HOME
was set incorrectly on a new machine I had just set up.
Resolved by:
Running java --version
showed a pop-up that the JDK was not installed. I clicked the More Info button which took me to a download site.
Downloaded, and extracted to ~/tools/jdk-15.0.1.jdk
In .bash_profile
set JAVA_HOME
with full explicit path.
Upvotes: 0
Reputation: 99
Try enabling USB Debuuging in the Android emulator itself, like you would do it on a real device. Settings-> Developer options-> enable USB Debugging.
Upvotes: 9
Reputation: 778
Go to tools->android->AVD manager->then you can see the Android virtual devices.
If you dont have any devices,at the bottom shows create virtual device button then create new Virtual device,If you face issue i'll help you !
Upvotes: -3
Reputation: 1193
Try this in android studio menu
Tools
-->
Android
-->
Enable ADB Integration
if is is already Enabled
try to disbale
and reenable
this works most of time for me.
Upvotes: 5