Prethia
Prethia

Reputation: 1203

Android Studio does not detect the emulator

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

Answers (10)

Vignesh
Vignesh

Reputation: 160

Go to File -> Project structure -> Project -> select SDK version. Then you can see emulator name in android studio

enter image description here

Upvotes: 5

Saad Ibn Rouf
Saad Ibn Rouf

Reputation: 67

Instead of trying wipe data option, I tried Cold Boot Now option. It worked for me.

Upvotes: 7

user20361110
user20361110

Reputation: 1

  1. Save your project to git
  2. Wipe it from your computer
  3. clone it
  4. Open it with android studio

This steps work for me

Upvotes: 0

user_MGU
user_MGU

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

Abror Esonaliev
Abror Esonaliev

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

Gene Bo
Gene Bo

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:

  1. 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.

  2. Downloaded, and extracted to ~/tools/jdk-15.0.1.jdk

  3. In .bash_profile set JAVA_HOME with full explicit path.

Upvotes: 0

MattBH
MattBH

Reputation: 1642

Try starting the emulator before opening Android Studio.

Upvotes: 0

Abhith Anto
Abhith Anto

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

Vadivel
Vadivel

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

AJay
AJay

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

Related Questions