Categories
Android Eclipse Emulator SDK

Eclipse – “invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe”

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

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 😉

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!

hey thank you so much ,, i was trying for so long .. now it is working thank you so much ….

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.

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!

Thanks a lot !!! it worked for me too. I just changed the name of Program File in eclipse

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 тнιѕ ιηƒσямαтιση▓

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.