user4534764
user4534764

Reputation:

Android Studio - no Virtual Device

I'm trying to run my new Project in Android Studio. I want to run it on emulator. I created the new virtual device but Android Studio doesn't see this device. I created ~10 devices with various configuration and problem still exists. My project was created on API 23. When I run AVD Manager from sdk folder it showing up every device that I created... Below I attach the screens of this problem. Can someone help me?

p.s. When I changed the target in 'Edit configurations', then my project works, but I would to have a opportunity to test it on various configurations without edit configurations all the time..

Android studio: enter image description here

AVD Manager from sdk folder: enter image description here

Upvotes: 0

Views: 7041

Answers (2)

sup4eli
sup4eli

Reputation: 324

As there are several sources that explain how to properly setup a AVD - android virtual device, this might be a good idea to check official docs here.

  • The basic steps:

    1. In Visual Studio select Android -> AVD Manager.
    2. In AVD Manager press "New".
    3. Enter a device name and select a target. Please use Android 2.3.3 or newer. Older versions are not stable and might not work.
    4. Press "Create AVD"
    5. Press "Start"
    6. Wait till your device starts up.

If you do get into "no android devices found" on the AVD manager you would want to retrieve some more info with the following steps:

  1. Open command-line tool.
  2. Go to platform-tools directory in your Android SDK directory (C:\Program Files (x86)\Android\android-sdk\platform-tools, )
  3. Run the adb devices command.
    Credit goes to this article

The output might give a clue regarding the cause. In your case i was able to find the following post on SO that deals with similar issue, review it here!.

Upvotes: 3

Shlublu
Shlublu

Reputation: 11027

The easiest way is to start the device on which you would like to deploy your app before starting your app.

This way this device will appear in the deployments target should your app be compatible according to its manifest's minSdkVersion field.

Upvotes: 0

Related Questions