Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio emulator is not working

i´ve searched about an awnser for this problem, tried many things, but still it doesn't Work. I'm using a win7 64-bit version. I've set the ANDROID_SDK_HOME variable and... nothing. With the path: C:\Users\Nuno\Favorites\.android\avd

The error is this:

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?

like image 754
Nmaster88 Avatar asked Mar 12 '15 15:03

Nmaster88


People also ask

Why is my Android Studio emulator not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

How do I fix the emulator process for AVD has terminated?

1. Create any Emulator configuration in Device Manager, start it, won't start and terminates immediately. 2. Uninstall Android Emulator tools from SDK Manager, re-install the same tools, create emulator configuration, start the same, won't start and terminates immediately.


2 Answers

It's working now!

How did i solved? I copied the AVM's i created from c:\user\favorites.android\avd and pasted them at c:\user.android\avd.

Tbh i don't know why this happened but when i installed Android studio it created the first directory to put the avd's, while the HOME variable points to the second directory.

After that i had a second problem, it said it couldn't create the temp file... I just had to execute Android studio with administrative privileges.

I hope it helps.

like image 185
Nmaster88 Avatar answered Sep 23 '22 11:09

Nmaster88


I was facing same issue when installed and configured android studio on ubuntu 14.04 (64 bit).

After installation android studio successfully, when I run my app, I faced below issue:

Cannot launch AVD in emulator. Output: PANIC: HOME is defined but could not find Nexus_5_API_21.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)

I discovered reason of issue and find solution of the same. Reason was that I had downloaded android_studio at home directory (path:/home/ubuntu/android_studio). When I started studio (by using command: $sudo sh /home/ubuntu/android_studio/bin/studio.sh), which is actually installed at path /root/, it is trying to access "root" user files at path /root/.android/avd

Ready to use solution is: Use command with root user ie

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

in place of of

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

like image 21
Neoark Software Avatar answered Sep 23 '22 11:09

Neoark Software