Fix Android Error - Invalid Command-line Parameter: Files
Posted On Wed Jul 13, 2011 By mel In General Errors Forums And Topics Discussions You Find On The Web Forums
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.
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

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
after i was able to fix the SDK location, i didnt get the error anymore

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
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
[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

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

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
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.
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
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
Forums »
General Errors Forums And Topics Discussions You Find On The Web »
Fix Android Error - Invalid Command-line Parameter: Files
General Errors Forums And Topics Discussions You Find On The Web »
Fix Android Error - Invalid Command-line Parameter: Files
Title: Fix Android Error - Invalid Command-line Parameter: Files
Description: this is a common error you might get when you are first running your first hello world script in the android sdk using eclipse i was able to fix this error invalid command-line parameter: Files use '@foo' to launch a virtual device named 'foo' please
Tags: android ,developer ,error ,eclipse ,command ,foo ,help ,fix ,resolve
Info: This Post Has Been Viewed 0 Times Since
Date: Wed Jul 13, 2011
Author mel Received 50 Replies #2675
Date: Wed Jul 13, 2011
Author mel Received 50 Replies #2675
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE:: 

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
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
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5