Android Studio does not see AVD

I have a problem related to Android Studio.

  • I am creating an AVD with Android Studio AVD Manager and its configuration looks like

http://imgur.com/awg59Lg

  1. I will go back to the previous screen where I have to select this device as my preferred Android device

http://imgur.com/uj6FMCn

As you can see, the field is empty. If I try to start device through Android Studio AVD Manager, it just won't start. No error message or something else

If I try to run it through the AVD manager that comes with the Android sdk, it launches in the usual way, but then I can't load my app into it because Android Studio doesn't see it.

I have installed the following

  • jdk-8u25-windows-x86 in the following location D: \ Programs \ Java \ jdk1.8.0_25
  • jre1.8.0 that comes with the package mentioned in point 1 in D: \ Programs \ Java \ jre1.8.0_25
  • Android-studio-bundle-135.1641136 android studio itself in H: \ AndroidIDE \ Android Studio
  • SDK that comes with the package mentioned in point 3 in H: \ AndroidIDE \ sdk
  • JAVA_HOME is set to D: \ Programs \ Java \ jdk1.8.0_25

When I create an avd using the AVD manager in Android Studio, its location on my filesystem is H: \ Users.android \ avd \ Nexus_5_API_21_x86.avd (Keep in mind that my user files are directly stored in H: \ Users without my username that is part of the path

When I create an AVD from Android Studio, the standalone AVD manager that comes with the SDK can see this AVD. When I create an AVD from Android Studio AVD manager, the AVD manager that comes with the SDK can see the image as well.

The problem still remains that my Android studio cannot see these AVDs and I cannot select them from the list of emulators when I set up the Run configuration.

I've tried this configuration on two different OS Windows 7 64bit and Windows 7 32bit. The result remains the same (of course, I installed different packages according to the OS architecture)

I would really appreciate if someone can help me. Because so far this Google Android Studio is a complete disappointment. Surprisingly disappointing to install and set up.

+4


source to share


6 answers


Is the AVD API right for your project? Have you tried any other configurations?

Keep these points in mind when you choose the system image target for your AVD:



  • The API level for the target is important because your application will not be able to run on a system image that is less API level than your application requires as specified in the minSdkVersion attribute of the application manifest file. For more information about the relationship between the system API level and the minSdkVersion application, see Specifying the Minimum System API Version.
  • You must create at least one AVD that uses a target whose API level is greater than your application requires, because it allows you to check the compatibility of your application. The feed-forward compatibility check ensures that when the users who download your application receive a system update, your application will continue to function normally.
  • If your application declares a uses library element in its manifest file, the application can only run on a system image in which this external library is present. If you want to run your application on an emulator, create an AVD containing the required library. Typically you should create such an AVD using the AVD Platform Add-on (for example, a Google API Add-on is added to the Google Maps Library).

http://developer.android.com/tools/devices/index.html

0


source


The reason your device isn't showing is because you haven't selected an app:

What you have to do is open the app in your android studio: go to execute select change configuration in the left pane instead of Default as in your image, expand android app select app and all your devices will show up.



EDIT

When you open this window on the General tab , you have no module , select an application and your emulators will appear.

0


source


Another possibility is localhost. Check the event log for

Unable to open connection to: localhost / 192.xxx: 5037, due to: java.net.ConnectException: Connection refused

AVD is present after changing it back to / etc / hosts

127.0.0.1 localhost

0


source


Click the Synchronize Project with Gradle Files button to fix the problem.

0


source


I experienced this recently while trying to run an imported sample project in AS 3.1.4. I fixed this by right clicking on the project and choosing Make Module 'Project Name'. After that, my Run / Debug configurations were populated with the AVD list.

0


source


Open project structure (ctrl-alt-shift-s). On the left side select "project", then select the project SDK (AVD that you created earlier) on the right side. This will connect your project to the AVD.

0


source







All Articles