参考文章:

http://stackoverflow.com/questions/18540607/starting-emulator-for-avd-then-panic-could-not-open

http://android.stackexchange.com/questions/51742/cannot-start-emulated-android-device-avd-device-in-windows-7


解决方法一:

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.

Try these steps

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

Note The <> means the name of your Windows account; it is where resides the folder which contains your .android directory

An android project member says here:

As a work-around, you can define the environment variable ANDROID_SDK_HOME to point to the directory containing your .android directory. The emulator and SDK Manager will pick it up properly.

Also you should check that the AVD is created in the location D:\NN\.android\avd (check in your screenshoots, just above the list of AVD, the path in List of existin Android Virtual Devices).




更多相关文章

  1. Android为Menu添加item及响应函数
  2. 为ListActivity 添加Button
  3. 【问题处理】arcgis运行在android studio上jar包冲突解决
  4. android jni
  5. android博客导航总结,以及个人常用android免费学习干货(文章,视频,矢
  6. Android中显示照片的Exif信息
  7. Android(安卓)4.0 Ice Cream Sandwich 正式发表!
  8. Android面试系列2018总结(全方面覆盖Android知识结构)
  9. android嵌套滑动- Material Design

随机推荐

  1. 判断手机类型
  2. Linearlayout 添加divider
  3. Android开发者网址导航
  4. SmartQ7 Android 改变屏幕 分辨率
  5. [Android病毒分析]木马病毒之DroidKongFu
  6. Android之Gridview
  7. Android SDK Installation
  8. android MediaPlayer出现RuntimeExceptio
  9. Android Light Sensor与Temperature Sens
  10. 保存Activity状态