Results 1 to 2 of 2
  1. #1
    MCinPgh is offline Member
    Join Date
    Sep 2011
    Location
    Pittsgurgh, PA
    Posts
    4
    Rep Power
    0

    Default "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
    Last edited by MCinPgh; 09-09-2011 at 09:02 PM.

  2. #2
    MCinPgh is offline Member
    Join Date
    Sep 2011
    Location
    Pittsgurgh, PA
    Posts
    4
    Rep Power
    0

    Default 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.

Similar Threads

  1. Error: "Invalid character constant"
    By Turk80 in forum New To Java
    Replies: 3
    Last Post: 04-06-2011, 09:53 AM
  2. Replies: 3
    Last Post: 01-31-2011, 10:46 AM
  3. Replies: 3
    Last Post: 08-25-2010, 11:21 AM
  4. Replies: 1
    Last Post: 06-30-2009, 03:32 PM
  5. Replies: 1
    Last Post: 10-20-2008, 08:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •