After Android SDK update, when you try to launch the Emulator from Eclipse show this error message:
[… – Emulator] invalid command-line parameter: FilesAndroidandroid-sdktools/emulator-arm.exe.
[… – Emulator] Hint: use ‘@foo’ to launch a virtual device named ‘foo’.
[… – Emulator] please use -help for more information
Solution:
In Eclipse go to menu Window -> Preferences -> Android
Change SDK Location
from
C:\Program Files\Android\android-sdk
to
C:\PROGRA~1\Android\android-sdk
then click Apply and OK.
Like ahmed said in his comment:
“You have do change the path to the Android SDK to have it without spaces at all.” 😉
Alternative Solution: by Brandon Peters (@cisox):
Create a symlink between the android-sdk folder in C:\Program Files (x86) and C:\AndroidSDK:
Start Command Prompt Window (Start -> Run -> cmd) and execute the following command:
mklink /D C:AndroidSDK “C:\Program Files (x86)\Android\android-sdk”
Did my solution solve your problem?
47 replies on “Eclipse – “invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe””
Thanks
Thanks… Its works…
it’s works for me also thank you
Thank you very much. Can you explain the reason of this error?
Hi, tnx for your comment.
The tool “emulator-arm.exe” that is used to launch the Android Emulator can accept Command Line Options (command-line parameter).
Open Windows Command Prompt (cmd.exe) and try to launch emulator with the following syntax:
{android sdk path}tools>emulator-arm.exe -avd {adv name}
where {adv name} is the Virtual Device name that you have created from SDK Manager
for example:
C:Androidandroid-sdktools>emulator-arm.exe -avd Test
In this case becouse there is a white space into Android SDK path, the words “Program Files” are interpreted like divided and then the tool is expected that after the space is a parameter then appears the error: “invalid command-line parameter: FilesAndroidandroid-sdktools/emulator-arm.exe.”
So, my solution is change long file name with DOS file name.
Usually, is possible to use long file name with “Quote” but in Eclipse is not allowed.
This is definitely a bug 😉
thanks you for solutions and explanations
Thanks. Just updated the SDK this morning and ran into this bug.
Awesome worked for me and number one google search too!
Thank you so much!
Thank you for this. Saved me from losing more hair lol.
Developers with long hair are now just a dream 🙁
Lol
LOL so true!
its worked fine…thank you very much….
Thx Sooooo Much
Tanks your solution,tanks again
thank you
http://www.android.net/forum/beginning-developers/62877-invalid-command-line-parameter-eclipse-android.html
“You have do change the path to the Android SDK to have it without spaces at all.”
thank you so so much. I have struggled with this for 2 whole days and no one was giving me any decent help. I was just about to give up when I stumbled upon this!
working fine, thanks a lot for the solution
hey thank you so much ,, i was trying for so long .. now it is working thank you so much ….
and if you dont work with eclipse?
Hi, tnx for your comment, please could you give me more info? Where do you read this error message if you don’t work with Eclipse? As written in my post title I’m refering to Eclipse. Write complete error message and I’ll try to help you.
thank you very much. it works! 🙂
Hey I couldnt launch the Android Emulactor on Eclipse IDE, I installed the jdk, android sdk, eclipse, and added new software under android version 2, and created a valid AVD, but it wouldnt launch!! heres the code i got in launching.
invalid command-line parameter: including.
Hint: use ‘@foo’ to launch a virtual device named ‘foo’.
please help!
in addition to this issue… I read the above comments where it says folder name cant have any white space, i renamed my folder and removed white spaces, and now it launches and the Emulactor works! Thank you to above replies, this issue is resolved!
very good. thanks!!
Thanks a lot !!! it worked for me too. I just changed the name of Program File in eclipse
Thanks Dude!!!…..I got solution from many places. but no one was so clear
Tnx for this comment 😉
yeeeeeeeeaaahh…. cool its worked… my confuse is gone….lol.
thx my brother…
~(˘▾˘~) ~(˘▾˘)~ (~˘▾˘)~
●๋•ηι¢є ιηƒσ●๋• ▒η♪ç€ ♪ηŦ☼▒ ¤ηι¢є ιηƒσ¤
yyyeeeaahhh… its worked.. my confuse is gone…hahaha lol..
thx my brother…
~(˘▾˘~) ~(˘▾˘)~ (~˘▾˘)~
▓тнαηк ソσυ ƒσя ѕнαяιηg тнιѕ ιηƒσямαтιση▓
thanks for all …. it works
thank you friend.. its working correctly… thanks a lot..
Thanks brother…uhuu!!!
Big Thank YEAH!!!
Thank you!
Thanks for solution.
It works perfectly
It didn’t work for me
Should I change my Windows Folder name to eliminate the space? Because when I eliminate the space in Eclipse it says it is an invalid folder.
I got it. Thanks.
Do you have solved the problem? Does it work?
THanks for this! Saved my life 🙂
Now this is what i wanted…..Thank You man….
I ultimately wanted an easier way to access the SDK anyway so to solve this problem I created a symlink between the android-sdk folder in C:\Program Files (x86) and C:\AndroidSDK
mklink /D C:\AndroidSDK “C:\Program Files (x86)\Android\android-sdk”
Works great.
Hi Bro, tnx for your comment. I added your solution in my post 😉
How this issue can be resolved on ubuntu os
Hi Mohd Ikram,
thank you for your reply. I’m sorry but I cannot help you. I write posts with real error message that I found in my work and my solution to resolve it. I don’t know what is the error message that appears in ubuntu and I’m sorry but I haven’t a pc with linux.