"invalid command line parameter" error
I'm a .net coder learning java/android programming using Eclipse/Indigo
I tried running the hello work program described here:
Hello, World | Android Developers
The problem is when I try to run the program I'm getting an "invalid command line parameter" message in the console.
Has anyone seen this or understand what I need to do to fix this?
thanks in advance
I found online that eclipse does not like the spaces in the path to the android sdk?
the path I have to the sdk is: C:\Program Files\Android\android-sdk
I am thinking that I need to get the 8.3 version of that path?
Here are the console messages I get
<CONSOLE>
[2011-09-09 08:59:18 - HelloWorld] ------------------------------
[2011-09-09 08:59:18 - HelloWorld] Android Launch!
[2011-09-09 08:59:18 - HelloWorld] adb is running normally.
[2011-09-09 08:59:18 - HelloWorld] Performing com.example.HelloWorldActivity activity launch
[2011-09-09 08:59:18 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'Android3.2'
[2011-09-09 08:59:18 - HelloWorld] Launching a new emulator with Virtual Device 'Android3.2'
[2011-09-09 08:59:18 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
[2011-09-09 08:59:18 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
</CONSOLE>
UPDATE:
I wrote a program that parses the path above to instead use the 8.3(short path) to the sdk and not getting that error anymore but instead getting this
"emulator ##### disconnected" error. why does that happened and what does it mean. also should I close this post and open a new one with the next message on this forum?:
<CONSOLE>
[2011-09-09 13:51:44 - HelloWorld] ------------------------------
[2011-09-09 13:51:44 - HelloWorld] Android Launch!
[2011-09-09 13:51:44 - HelloWorld] adb is running normally.
[2011-09-09 13:51:44 - HelloWorld] Performing com.example.HelloWorldActivity activity launch
[2011-09-09 13:51:44 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'Android3.2'
[2011-09-09 13:51:44 - HelloWorld] Launching a new emulator with Virtual Device 'Android3.2'
[2011-09-09 13:52:15 - Emulator] emulator: emulator window was out of view and was recentred
[2011-09-09 13:52:15 - Emulator]
[2011-09-09 13:52:15 - HelloWorld] New emulator found: emulator-5554
[2011-09-09 13:52:15 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...
[2011-09-09 13:53:32 - HelloWorld] emulator-5554 disconnected! Cancelling 'com.example.HelloWorldActivity activity launch'!
</CONSOLE>
One of the questions I have too since I'm new to eclipse, how do I stop execution of a program?
thanks
MC
Re: "invalid command line parameter" error
you know what, getting the 8.3 version of the location did the trick and the second issue I mentioned I just had to stop the program and restart it.