Pages

AVD fail to start with Android SDK tools Rev 12

I was trying to launch an Android application using Eclipse 3.6.2 and Android SDK tools REV 12, when I noticed that the Android Virtual Device failed to start with the following error message:

invalid command-line parameter: File
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information


The issue is caused by blank spaces in the Android SDK location exported in Eclipse under Window -> Preferences -> Android

A solution for Windows users is to replace the Android SDK location name for its short filename version (8.3 notation)

How to get the SFN for the Android SDK location in Windows?

  • Execute the Command Prompt (CMD)
  • Type "DIR /X" to list the directories with their SFN



For our case we need to change the "Program Files (x86)" by "PROGRA~2" in Window -> Preferences -> Android:


Apply the changes and execute the application,  the AVD will be launched succesfully.

No comments:

Post a Comment