Sunday, September 18, 2011

Solution of Android Error: invalid command-line parameter

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

The problem is due to the spaces in the path of android sdk.

Solution:
For Windows XP:
If android SDK is located at C:\Program Files\Android\android-sdk
Then you should change the path to C:\PROGRA~1\Android\android-sdk  in the preferences of ECLIPSE IDE.

For Windows 7(64-bit):
In window 7 there are two program files folders. Program Files and Program Files (x86). Android is installed at Program Files (x86) because android SDK is a 32-bit.
In window 7 SDK is located at C:\Program Files (x86)\Android\android-sdk
then you have to change the path to C:\PROGRA~2\Android\android-sdk

Hope it helps.

1 comment: