3

It won't start the virtual device. Why can't things just work??

I'd rather not reinstall everything outside Program Files directory and I don't know and don't care what Eclipse is.

A-OK
  • 3,184
  • 10
  • 34
  • 42
  • see also http://stackoverflow.com/questions/6638713/android-emulator-is-not-starting-showing-invalid-command-line-parameter – parkerfath Sep 13 '11 at 00:33

3 Answers3

10

Its because of the spaces in "Program Files (x86)". From the eclipse menu bar do this

  1. Go to Window > Preferences
  2. Click Android
  3. At the "SDK Location bar" change it from C:\Program Files (x86)\Android\android-sdk to C:\Progra~2\Android\android-sdk

It should work perfectly now. (However if you're using a 32bit system then you'd have to change it to 'Progra~1' not 2.)

parkerfath
  • 1,648
  • 1
  • 12
  • 18
Zeeno
  • 2,671
  • 9
  • 37
  • 60
1

Assuming Windows install:

  1. Create an AVD with the Android SDK and AVD Manager, remember what AVD name you used.
  2. Start Command Prompt, go to the SDK Tools folder (e.g. C:\Program Files (x86)\Android\android-sdk\tools.
  3. Type emulator.exe -avd "avd_name, (e.g. emulator.exe -avd AVD_1.5).
biegleux
  • 13,179
  • 11
  • 45
  • 52
1

My guess is that you installed the SDK in a path with a space in it. Try uninstalling and installing to C:\Android or something.

Source: http://ideanotion.net/android-sdk-invalid-command-line-parameter-files-error/

marchica
  • 2,326
  • 23
  • 21