Android/Eclipse PANIC: Could not open

2019-01-08 14:36发布

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?

8条回答
小情绪 Triste *
2楼-- · 2019-01-08 15:04

Find the .android folder on your cpu. You can find it by going to Window -> Preferences -> Android -> Build, and see the "Default debug keystore:" path location.

After you find it, move the .android folder to your user root directory - which may be "C:\Users\Nathan Smith\" in your case.

查看更多
看我几分像从前
3楼-- · 2019-01-08 15:07

The AVD manager normally uses the user's profile directory to store AVD files.

However it failed to find the default profile directory.

To fix this, please set the environment variable ANDROID_SDK_HOME to a valid path such as "".

Step 1. (Windows 7 Only... 64-bit version Tested) Go to your start menu, then open the Control Panel.Click System and Security, click System, then open up the Advanced System Settings (on the left). Go to the Advanced Tab, then click Environment Variables.Check your user variables.

If you don't, find A variable named ANDROID_SDK_HOME with the Value, click new. In the Variable Name box, type in "ANDROID_SDK_HOME" (Without quotes).

In the Variable Value, type in something like c:/Users/jorge/AppData/Local/Android/Android-sdk. Click OK.Then click OK. Click OK again. Close the Control Panel and restart your computer.

Try Running SDK or AVD Manager(s) again. Create an AVD and run it.

查看更多
登录 后发表回答