简体   繁体   中英

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?

ps 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: 在此处输入图片说明

AVD Manager from sdk folder: 在此处输入图片说明

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM