Is this an Android Studio bug or am I mistaken?

I have an Android studio installation on my Ubuntu computer, and now when I try to run the emulator, it throws an exception, for example:

Unable to start AVD in emulator.

Exit:

PANIC: Could not find Nexus_S_API_21.ini File in $ ANDROID_AVD_HOME $, and not in $ HOME. / Android / avd

So when I do this:

echo $ANDROID_AVD_HOME 

It shows empty, which means that this path is not set, and when $HOME is my /home/user

So when I go into /home/user/.android/avd , there really is no .ini file. So, I'm confused when I create a virtual device, where does it go? How can I find a way to create virtual devices and, if possible, how to change the way to create virtual devices?

+5
source share
4 answers

You can find the location of your avd * .ini files in AVD Manager (GUI). Right under the "Android Virtual Devices" is the line "List of existing Android Virtual Devices located at %here is the location%" .

You can try changing the %android_avd_home% system variable to something like /home/user , for example, and then restart the IDE (Android Studio).

You can also find useful information here: https://code.google.com/p/android/issues/detail?id=78577

Hope this helps

+1
source

I had the same problem in OSX, but the weird part only happened after I added the ANDROID_SDK_HOME variation to my environment.

I experimented and found that if I added the ANDROID_AVD_HOME variable to my environment or I deleted ANDROID_SDK_HOME, it made it start working.

+1
source

One solution to this problem is to copy the file emulator, which came out and renamed it the name of the new emulator; this is, say, the name of the studio of an Android emulator that is trying to run.

NB: Before I assume you installed eclipse ADT, which contains one or more emulators

Example:
1) cd.android/avd/
2) ls -al
3) cp.ini.ini
4) Finish running the emulator in your Android studio using AVD

+1
source

This happens on Windows when the user's home folder is changed from the default . To make Android Studio happy just add an environment variable and set it to your home folder, for example:

 ANDROID_SDK_HOME = D:\Users\max\ 
+1
source

Source: https://habr.com/ru/post/1209840/


All Articles