The Android Emulator Is Not Starting, Showing "Invalid Command-Line Parameter"

The Android emulator is not starting, showing invalid command-line parameter

  • If your SDK location path in Eclipse is in C:\Program Files (x86)\ change to C:\PROGRA~2\.
  • If you are running 32-bit Windows, C:\Program Files\, change the path to C:\PROGRA~1\.

Sample Image

Android Emulator: invalid command-line parameter

It's my mistake that I named my folder "Android Development" where I have put my sdk. I realized that having a path that have an empty space between letters or words, like in my case "Android Development" have caused this error.

I just transferred my android sdk to another folder and make sure that i named it properly(without blank space), for example "Android_Development".

Android Emulator - invalid command-line parameter:

Please refer to the Stack Overflow post Starting the Android emulator in SDK tools, revision 12 for a solution. It did not come up in the search, but it did correct my problem. The space in the path name (PROGRAM FILES) seems to be causing the problem. I took the renaming suggestion to change the path name to PROGRA~1, and my problem was resolved.

Android emulator r12 and MONO (invalid command-line parameter)

You can't just move it, because Mono uses the registry key that the Android SDK installer wrote when it was installed to find it. You need to uninstall the Android SDK and reinstall to a location without spaces in it. (Or update the registry key to your new location.)

Getting error in starting Emulator

This is because your sdk path in eclipse contains "Program Files", which contains space. Instead of "Program Files" do it PROGRA~1. This should solve the issue.

EDITED

To find the small names of your directories -

Open a command prompt go to your parent directory and fire this command - DIR/X and you will get list of small names for all of your directories. Replace any name with space with the name you get here.



Related Topics



Leave a reply



Submit