Starting emulator for AVD avd PANIC: Failed to open: avd - Ubuntu 13.10

I used sdk for Android for a long time in my Ubuntu. I recently updated it to Ubuntu 13.10. Since when I try to start the Android virtual device, I get this error:

Starting emulator for AVD 'Ace2' PANIC: Could not open: Ace2 

I tried to change permissions for files and folders, but still did not improve. Any suggestion?

+6
source share
7 answers

Perhaps AVD was created for another user, as this is a blog post . Check the contents of / home / your-user-name /.android/avd as well as /root/.android/avd. In my case, the AVDs I created landed at the root, while the IDE tried to find them in my user avd directory. Copying everything to another AVD directory did the trick.

Good luck

+4
source

I had the same problem that was fixed following the recommendations on this topic (which was the main problem), but that was not enough. I should have done more in my case. See if below helps.

Firstly, since I launched eclipse using the command "sudo./eclipse" .android / avd "was created under" / root ", and not under" / usr / myname ". I fixed this by copying ".android / avd" from "root" to "/ usr / myname".

However, this still has not fixed. Then I had to change permissions in two places as follows cd / usr chmod a + r + w + x -R myname (this ensures that the myname folder and all subfolders get the maximum permissions). cd / usr / local chmod a + r + w + x -R adt-bundle-linux-x86_64-20131030

Finally, running eclipse again, just type. / eclipse (without sudo).

Bingo. So it was. Note. You will see that I have provided maximum permissions for all subfolders, that is because my training program. Depending on your use, you may need to carefully provide read / write / execute access to all folders in the two main directories containing user data.

+1
source

even I ran into the same problem, now resolved

If you use the Eclipse IDE, then after setting the environment variable:

name: ANDROID_SDK_HOME

value: C: \ Users \ user

this should be the path where your .android is in my case: C: \ Users \ user.android .. but don't add .android in the path.

Go to eclipse> windows> preferences> run / debug> string substitution> new:

name: user.home

value: C: \ Users \ user

the same way as in the environment variable.

Close your eclipse later, then

run again as admin

.

+1
source

The location of the AVD that the Android IDE is looking for may be incorrect.

The easiest way to check is to create a new AVD with an AVD manager and check if the location matches Ace2 and that it can be started using

 emulator -avd <avd-name> 

If not, slide "Ace 2" to the desired location, and it should work fine.

0
source

How I solved this problem. I looked at my home directory and found that there is a hidden .android folder and the owner is root . I think this happened because I started eclipse several times as root. Then I just changed the owner and group of this .android folder ( chown command ), and that helped. I created a new AVD and was able to launch it.

0
source

I use Linux: I got this crash because I started the first time with the emulator with the root, and then started with sudo or the regular user! Also I tried to run an emulator that does not exist.

So, try starting with root!

0
source

I started using Eclipse and went through the error: PANIC: Could not open AVD. When I created a new AVD in AVD Manager, I saw the path shown there: C: \ Windows \ System32 \ Config \ systemprofile.android \ AVD

Referring to the above posts, I tried to copy the avd folder from the path just mentioned: C: \ Users \ User_name.android, and it worked.

Hope this can help you. Thanks.

0
source

All Articles