Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid command line parameter when Android executes

Tags:

android

When I click the 'run as Android application' option, it shows the following error:

[2010-08-16 16:56:35 - Emulator] invalid command-line parameter: http://hostname:port.
[2010-08-16 16:56:35 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2010-08-16 16:56:35 - Emulator] please use -help for more information
like image 432
Kandha Avatar asked Aug 16 '10 11:08

Kandha


3 Answers

Apparently the problem are the spaces in the path, so just from:

C:\Program Files\Android\android-sdk

to: C:\PROGRA~1\Android\android-sdk

If you have a 64 bit system

From: C:\Program Files (x86)\Android\android-sdk to:

C:\PROGRA~2\Android\android-sdk

Under Windows->Preferences->Android Change the SDK Location as shown above.

Translated from: http://satoriwd.com/astath/?p=11

like image 92
Porfirio Mendez Ocampo Avatar answered Oct 22 '22 13:10

Porfirio Mendez Ocampo


I've been trying to solve this same problem for two days now, and I just found a solution which works for me:

Cut the 'Android' file folder from it's place in the 'Program Files' (or 'Program Files (x86)' if you use Windows 7) folder and paste it directly in the C:\ directory

Your SDK file path should look like this:

C:\Android\android-sdk

Simple as that :D Now the Android debugger shouldn't worry about there being a space in the file path. Let me know if additional clarification is needed

like image 8
Andrew McGarry Avatar answered Oct 22 '22 13:10

Andrew McGarry


If you manually open the emulator from within the Android SDK then run the debugger it works too.

like image 1
JDM Avatar answered Oct 22 '22 15:10

JDM