Wallpapers Forums Login

Fix Android Error - Invalid Command-line Parameter: Files

hi everyone, just wanted to share something or better yet a problem i had with my installation of my android sdk. when i was creating the hello world from the google website:

http://developer.android.com/resources/tutorials/hello-world.html


when i completed the 'Run the Application' step, i got this error message on the console tab.

[2011-07-13 16:22:48 - Emulator] invalid command-line parameter: Files.
[2011-07-13 16:22:48 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2011-07-13 16:22:48 - Emulator] please use -help for more information


the problem was that i have a 64bit windows 7 pc and the path for the SDK location was D:\Program Files (x86)\Android\android-sdk

so i needed to change the Program Files (x86) to D:\PROGRA~2\Android\android-sdk

13p-8455-eclipse-preferences.jpg

if you have another OS like windows 7 32bit, you can use this website as preferences,

if you have windows XP for example:
change from:
C:\Program Files\Wallpaperama\Android\android-sdk
to
C:\PROGRA~1\Wallpaperama\Android\android-sdk

if you have something else where you installed your android SDK:
change from:
C:\Andoid Apps\Wallpaperama\Android\android-sdk
to
C:\ANDROID~1\Wallpaperama\Android\android-sdk

so basically, the problem is the spaces. there should not be any spaces in your SDK location



after i was able to fix the SDK location, i didnt get the error anymore
13p-8455-android-hello-world.jpg

UPDATE: thank you for all your comments. i appreciate all the +1
i see that many of you are asking where do you make the changes... a picture is worth a thousand words, but a video is worth a million!!! so i made a short video how to make the changes




Neel Sun Mar 25, 2012
i am still not able to solve this problem
my SDK path is
C:\android\and im using windows-32 bit
Ekeolere Fri Jan 27, 2012
Thanks alot, this helped me when i was trying to emulate an sdcard and got this error
addi Wed Oct 12, 2011
really thanks....... a lot....
David Mon Oct 10, 2011
Excellent! Thanks for sharing.
Karlz Wed Sep 28, 2011
Thanks a lot!!!
6times9equals42 Tue Sep 27, 2011
Thanks a lot!
Dodo Sun Sep 25, 2011
Thank u very (!) much.

PS: You dont have to rename the folder itself - just adjust the path within eclipse as shown in the picture.
Terry Sun Sep 18, 2011
The more general answer is to find the short path name in a DOS command window. Open a command prompt window (in the accessories menu), go to the root of the drive that your SDK is installed on, and type the following command.

cd /
dir /ad /x

It will show both the long name and the short name for the directories and files in that hard drive which is longer than 8 characters in length or has spaces in the name. Use the short name that represents the path to your SDK in place of the long name. If you have other subfolder names with long names in the path you may need to replace those as well.

Cheers
actafool Wed Sep 14, 2011
thank you very much
mora Sun Sep 11, 2011
thx much , i got this problem but i dont know where to change from change the Program Files (x86) to D:\PROGRA~2\Android\andro ... please help me !!
Jägermeister Thu Sep 08, 2011
Thanks a lot! You just saved me a lot of time!
Andreas Wed Sep 07, 2011
Thanks a lot! Your advice is absolutely correct!
Trojaan Wed Aug 31, 2011
Thanx aloth!
Chamberlin Sat Aug 27, 2011
Thanks SO MUCH for this quick, but IMPORTANT bit of advice! No more problems now!!
masta Sat Aug 27, 2011
wow, cannot believe this was the problem, thank you!!!

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5