AVD - PANIC: Could not open… - not a path issue

2019-01-08 12:14发布

I want to write an Android app and I've started this morning by loading JDK, eclipse, SDK etc, all from the adt-bundle-windows-x86_64-20130219 from http://developer.android.com.

The issue for me right now:

[2013-02-27 13:36:26 - Test2] Android Launch!
[2013-02-27 13:36:26 - Test2] adb is running normally.
[2013-02-27 13:36:26 - Test2] Performing com.example.test2.MainActivity activity launch
[2013-02-27 13:37:27 - Test2] Launching a new emulator with Virtual Device 'droidX2'
[2013-02-27 13:37:27 - Emulator] PANIC: Could not open: droidX2

I've been sifting though posts on the web all morning about AVD and I haven't seen one that didn't involve the path being messed up and the .ini not found. I don't think I've got a path issue. AVD is looking for files on D:\USERS\XXX\.android\avd and that's where the files are. So don't understand why the emulator can't open.

I've done the most basic things like remove and re-install everything, read the notes at orace etc. Basically I'm stuck. Any suggestions here?

adt-bundle-windows-x86_64-20130219 was what I loaded on Windows 7 (32bit).

I'd settle for testing on the mobile that's connected to the PC but I can't get that to work either!

Any direction appreciated.

11条回答
Luminary・发光体
2楼-- · 2019-01-08 12:51

I fixed the AVD Panic issue by running Eclipse as an administrator.

查看更多
时光不老,我们不散
3楼-- · 2019-01-08 12:52

Setting the ANDROID_SDK_HOME environment variable alone works fine for Win7 and earlier but did not help me on Win8.

For poor tortured souls using the piece of crap which is Windows 8, go to wherever you've installed the Android SDK (e.g. C:\SDK\Android or C:\Users\JoeCitizen\AppData\Local\Android\android-sdk) and make sure both AVD Manager.exe and SDK Manager.exe are set to run as Administrator for all users. Once I did that it worked fine.

Yet another deceptive problem-which-shouldn't-be-a-problem caused by the complete fail which is permission management circa Windows 8.

查看更多
放我归山
4楼-- · 2019-01-08 12:56

Found a simple way to make it work - worth trying: 1. If you do not have it yet - create a new AVD with the problematic name (in this case droidX2) if you see an overwrite warning - overwrite it. 2. Delete the new AVD you just created in step 1. 3. If you have another AVD it's OK, if not - create one. 4. Retry running the Eclipse project as an Android application - now it should run

查看更多
太酷不给撩
5楼-- · 2019-01-08 13:02

On Ubuntu check the current user if you run eclipse as root (sudo) eclipse could NOT find the /root/.android set the user home

user.home /home/<user>/

and copy the AVD files into the new directory than changes the privileges

cd /home/<user>/
chgrp <user> -R .android
chgrp <user> -R .android
查看更多
唯我独甜
6楼-- · 2019-01-08 13:03

Using Windows 7, Eclipse, Android SDK tools 23.0.4

First time I followed the exact instruction on http://developer.android.com/training/index.html I got the error "PANIC: could not open.." whenever 'Start' emulator.

Solution: System property popup/Enviroment Variables/ System variables, Added new entry name="ANDROID_SDK_HOME", value = "D:\DATA\Users\ThisUser\" Then it starts work!

"D:\DATA\Users\ThisUser\" is parent folder where ".android/avd" folder exists. avd folder path here is "D:\DATA\Users\ThisUser.android\avd"

Note that you must put "D:\DATA\Users\ThisUser\", not "D:\DATA\Users\ThisUser**.android**"

查看更多
登录 后发表回答