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:
- 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.
Android Emulator can't start, 'cause of wrong folder
android emulator error:[2011-08-02 11:14:01 - Emulator] PANIC: Could not open: C:\Users\hallo\.android/avd/myemu.ini
I have problem in a emulator
A simple solution,
Create your avd with normal steps. e.g. avd name is Nexus_One. You will see Nexus_One folder and Nexus_One.ini file at D:\Users\Nathan Smith\.android\avd
Copy Nexus_One.ini to C:\Users\Nathan Smith\.android\avd
Try running avd through AVD Manager. It will start the emulator.
Reason being it works, if you read ini file, you will find path variable as below,
path=D:\Users\Nathan Smith\.android\avd\Nexus_One.avd path.rel=avd\Nexus_One.avd
So, when you start emulator, it check the ini and tries to start emulator from path mentioned in path variable.
Hope this solves your problem.
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.
I had the same problem, but now its fixed.
Go to Windows in Eclipse, Windows->preference->run/debug->stringSubstitution-> add variable name as "user.home" Then the value will be your profile path
Example: mine is C:\users\sriramk\.android
Now open the default .android path, copy the content, and paste that content into
C:\users\sriramk\.android
. Restart Eclipse and now the emulator will open.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With