Android Studio emulator not working

I searched about the incer for this problem, tried many things, but still it does not work. I am using the 64-bit version of win7. I set the ANDROID_SDK_HOME variable and ... nothing. Path: C:\Users\Nuno\Favorites\.android\avd

Mistake:

 Cannot launch AVD in emulator. Output: PANIC: HOME is defined but could not find PhoneTest.ini file in $HOME\.android\avd (Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME\.android\avd and $HOME\.android\avd) 

Can someone help me?

+7
java android android-studio emulation
source share
7 answers

Now it works!

How did I decide? I copied the AVM created using c: \ user \ favorites.android \ avd and pasted them into the c: \ user.android \ avd folder.

Tbh, I don’t know why this happened, but when I installed Android studio, he created the first directory to host avd, while the HOME variable points to the second directory.

After that, I had a second problem, she said that she could not create a temporary file ... I just needed to run Android studio with administrative privileges.

Hope this helps.

+7
source share

I'm glad you solved the problem. This is the version of your ubuntu problem. This explains why you need administrator privileges.

+4
source share

I faced the same problem when installing and setting up Android studio on ubuntu 14.04 (64 bit).

After successfully completing the installation of Android Studio, when I launch the application, I encountered the problem below:

Unable to start AVD in emulator. Exit: PANIC: HOME is detected, but the Nexus_5_API_21.ini file could not be found in $ HOME / .android / avd (Note: avd is executed in the order of $ ANDROID_AVD_HOME, $ ANDROID_SDK_HOME / .android / avd and $ HOME / .android / A)

I found the cause of the problem and found a solution to it. The reason is that I uploaded android_studio to my home directory (path: / home / ubuntu / android_studio). When I started the studio (using the command: $ sudo sh / home / ubuntu / android_studio / bin / studio.sh), which is actually installed in path / root /, it tries to access the "root" user files along the path / root /.android/avd

A ready-to-use solution is: Use the command with the root user, i.e.

#sh /home/ubuntu/android_studio/bin/studio.sh

instead

$sudo sh /home/ubuntu/android_studio/bin/studio.sh

+4
source share

Add the environment variables ANDROID_AVD_HOME or ANDROID_SDK_HOME as your emulator actually (show the screenshot below). avd manager creates an emulator, possibly in a different directory (by default, C: \ Users [User Name] .android \ avd on Windows). As shown in the prompts, avd will look for xxxx/.android/avd . Thus, you set the above environment variables to solve this problem. enter image description here

+1
source share

When AS was upgraded in Parallels and HAXM was installed after disabling Hyper-V, did the new avds somehow get into the Mac.android folder for me? I previously installed AS on a Mac, but wanted to separate Xcode and AS, so I used Windows for AS and uninstalled it on a Mac. When I opened AS from the dock, it was like a new installation, and I did not import the settings ...

The solution was to capture all my old emulators (folders and .ini files) and paste them into the Window.android/avd folder.

0
source share

Worked with me by setting the ANDROID_SDK_HOME variable and the path D: \ ANDROID_SDK in SO Windowns 7 Thanks

0
source share

I may not answer your question, but I highly recommend that you upgrade to the new Android emulator. Works well for me:

Genymotion Homepage

-one
source share

All Articles