安卓/ Eclipse的惊慌:无法打开 [英] Android/Eclipse PANIC: Could not open

查看:185
本文介绍了安卓/ Eclipse的惊慌:无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是全新的Andr​​oid开发和Eclipse,所以我刚才设置这一切了,我在尝试的Hello World教程。可悲的是,当我尝试运行我得到以下错误的程序:

  

惊慌:无法打开C:\用户\弥敦道Smith.android/avd/Droid_4.0.3.ini

我听说你应该避免在这些路径的空间。就是在那里的问题是名称空间?如果让我怎么去改变它?

如果有人可以帮助我走出这将是盛大的。

顺便说一句我也注意到,我的SDK路径是 C:\用户\华硕笔记本\ Android的软件开发工具包\ 我应该更改为相同的用户?这不是故意的,是有我改变这种向正确的用户一个简单的方法?

解决方案

这个已经被问了几次不已,试试这个:

  
      
  1. 创建称为环境变量:ANDROID_SDK_HOME并将其设置为   C:\用户\管理员
  2.   
  3. 打开Eclipse>窗口> preferences和点击   在运行/调试和字符串替换
  4.   
  5. 添加一个名为新变量:   的user.home并将其设置到C:\用户\管理员
  6.   
  7. 创建一个AVD并运行   吧。
  8.   
  • <一个href="http://stackoverflow.com/questions/6641498/android-emulator-cant-start-cause-of-wrong-folder">Android模拟器无法启动,'错误的文件夹

  • 的原因
  • <一个href="http://stackoverflow.com/questions/6936230/android-emulator-error2011-08-02-111401-emulator-panic-could-not-open-c">android仿真器错误:[2011-08-02 11时14分01秒 - 模拟器]惊慌:无法打开C:\用户\你好\ .android / AVD / myemu.ini

  • 我在模拟器有问题

I'm brand new to Android development and Eclipse so I have just set it all up and I am attempting the Hello World tutorial. Sadly when I try and run the program I get the following error:

PANIC: Could not open: C:\Users\Nathan Smith.android/avd/Droid_4.0.3.ini

I have heard that you should avoid spaces in these paths. Is the space in the name where the problem is? If so how do I go about changing it?

If anyone could help me out with this that would be grand.

By the way I also noticed that my SDK path is C:\Users\Asus Laptop\android-sdks\ should I change this to the same user? This was not intentional, is there an easy way of me changing this to the right user?

解决方案

This has been asked a few times already, try this:

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

这篇关于安卓/ Eclipse的惊慌:无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆