“Starting emulator for AVD” then Panic: could not open…\"

折月煮酒 提交于 2019-11-30 11:38:04
Umer Farooq

This is a bug in the ADT Plugin. For a workaround until it is fixed use a NTFS symbolic link.

I have a C: drive for windows 7 and a D: drive for all my work and data. After installing windows 7 I relocate all my special folders from C:\Users\John Doe to D:\John Doe. The ADT Plugin is trying to load the emulator from C: when it and the configure files are on D: (PANIC: Could not open etc.). NTFS can get the ADT Plugin to read from D: using a NTFS symbolic link. Open a command prompt in C:\Users\John Doe (obviously use your user name), use the mklink command.

 mklink /J "C:\Users\John Doe\\.android" "D:\John Doe\\.android"

Now when the ADT plugin is trying to reference .android on C:, NTFS sends the request to D: and the emulator starts correctly.

Original Source

OR

If it is not a path issue, then:

Create a environment variable called: ANDROID_SDK_HOME and set it to C:\Users\Administrator Open Eclipse > Window > Preferences and click in Run/Debug and String Substitution Add a new variable called: user.home and set it to C:\Users\Administrator Create an AVD and run it.

Original Source

Simply if nothing works for you, just copy the .android folder to C:\Users\.android.

I had the same issue, and the first Umer Farooq's suggestion solved it. There was already the folder .android in C:/Users/MyName folder. I compressed it to the .android.zip for the backup purpose, and then deleted the folder C:/Users/MyName/.android. Then I opened a command prompt (it was already located at C:/Users/MyName) and executed a command:

 mklink /J "C:\Users\MyName\\.android" "D:\\.android"

Then I restarted eclipse and launched the AVD. The virtual device has been created and it worked well.

my avd was in folder d:\c_data.android. it was searching in folder c:\users\rkk.android. i copied avd folder from d:\ and pasted in c:\users\rkk.android. And it was success.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!