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
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
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
If you manually open the emulator from within the Android SDK then run the debugger it works too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With