Invalid command line parameters как исправить

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

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

Yi Jiang's user avatar

Yi Jiang

48.9k16 gold badges136 silver badges135 bronze badges

asked Aug 16, 2010 at 11:30

Kandha's user avatar

5

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

C:Program FilesAndroidandroid-sdk

to:
C:PROGRA~1Androidandroid-sdk

If you have a 64 bit system

From:
C:Program Files (x86)Androidandroid-sdk
to:

C:PROGRA~2Androidandroid-sdk

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

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

user914425's user avatar

user914425

16.2k4 gold badges28 silver badges40 bronze badges

answered Jul 11, 2011 at 6:32

Porfirio Mendez Ocampo's user avatar

2

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:Androidandroid-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

answered Jul 14, 2011 at 15:10

Andrew McGarry's user avatar

2

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

answered Jan 7, 2011 at 21:29

JDM's user avatar

i did the following and my problem was solved(MY PROBLEM:when i wanted to run an emulator from the AVD manager,i received the following error
«invalid command-line parameter: Files.
Hint: use ‘@foo’ to launch a virtual device named ‘foo’.
please use -help for more information»)
i think its happens when in the path of android.exe (in the tools folder in android-sdk directory) any space exists (like C:/Program Files(x86)/… between Program and Files)
So what did i do?
-i deleted all virtual devices that have created.
-copied the whole android-sdk folder somewhere else.
-uninstalled and reinstalled SDK in another path without any spaces(like C:/Android/android-sdk)
-i copied the contents of old sdk-android (which was copied before uninstalling) like platform tools and platforms folders to the new path.(you can download platform tools and platform(s) again from the avd manager but this waist time)
it worked for me and i hope it works for you too.
thanks

answered Jul 27, 2011 at 13:34

Peyman's user avatar

I had this same exact error when I would try to launch the emulator from Eclipse. I had all my Android files in my documents to begin with, not my program files. I moved these files and still had the problem because of my user name having a space in it.

So I took the suggestion of Andrew McGarry and put my Android SDK folder in my C: directory and viola, problem solved…well after I redirected it in Eclipse obviously lol.

Just make sure that nothing in your SDK path has a space in it and you should be fine. You shouldn’t have to uninstall or delete anything, and you probably won’t have to move any files around either. Remember…no spaces in the entire path. =)

answered Jul 30, 2011 at 16:54

Mistress phePhe's user avatar

I was facing the same problem with Android when executing the emulator, and I found a solution right now. Please follow these steps:

  1. Uninstall the SDK that you have already installed
  2. Create a folder in disc C
  3. Name it like Android
  4. Open it and create inside it a new folder, for me I named it PROGRA~1
  5. Execute the installation of your SDK to be installed in the folder created PROGRA~1

Yi Jiang's user avatar

Yi Jiang

48.9k16 gold badges136 silver badges135 bronze badges

answered Jul 20, 2011 at 10:44

user853761's user avatar

In the line that says invalid parameter. You need to get rid of all the spaces. I had the same problem — my path was something like jason/phone app/xyz

I changed the directory name to jason/phoneapp/xyz and it worked. You need to change the actual name of the directory that the command line is referencing. Then you need to go into eclipse and go into Windows > Preferences and you will find it says phone app (in my case) and change this also to phoneapp, and all will be well.

Don’t uninstall anything, and don’t move files around because they will the rest of the SDK will eventually go looking for them and not be able to find them.

Yi Jiang's user avatar

Yi Jiang

48.9k16 gold badges136 silver badges135 bronze badges

answered Jul 20, 2011 at 20:40

jason's user avatar

jasonjason

111 bronze badge

This trick doesn’t work in IntelliJ. To solve it I moved the Android SDK to c:android-sdk-windows.

After that you still have to change the path to Android in IntelliJ of course:
— right click on the module -> open module settings
— go to: platform settings -> SDKs -> Android

Or delete the previous one and create a new one

answered Jul 13, 2011 at 14:47

lukin's user avatar

lukinlukin

4711 gold badge3 silver badges12 bronze badges

I’ve been trying to solve this same problem,and I just found a solution which works for me:
@First i saw a file named adb_has_moved.txt.The contents of the file were
«The adb tool has moved to platform-tools/

If you don’t see this directory in your SDK,
launch the SDK and AVD Manager (execute the android tool)
and install «Android SDK Platform-tools»

Please also update your PATH environment variable to
include the platform-tools/ directory, so you can
execute adb from any location.

»
so i copied adb.exe from platform-tools to tools……BUT THAT DIDN’T WORKED OUT
Then i tried the next solution that is to create a new device bt that also flopped
removing old virtual devices and creating new one was also not working for me

SO i tried the solution below and stated by many.i found it from a spanish blog.i dont knw spanish bt i do knw google translate.

It seems the problem is the spaces in the path for example:C:Program FilesAndroidandroid-sdk

CHANGE THIS TO
C:PROGRA~1Androidandroid-sdk

It really worked out for me.

answered Aug 2, 2011 at 19:13

vatsal's user avatar

vatsalvatsal

3091 gold badge5 silver badges13 bronze badges

Delete your previous Virtual devices. Re create it. launch it.

Once the emulator is running, run your application.

Other wise, go to your run configuration and select the emulator you would like to run.

answered Aug 17, 2010 at 7:04

Vinay 's user avatar

Vinay Vinay

2,3953 gold badges31 silver badges35 bronze badges

1

Asked
11 years, 6 months ago

Viewed
4k times

It won’t start the virtual device. Why can’t things just work??

I’d rather not reinstall everything outside Program Files directory and I don’t know and don’t care what Eclipse is.

asked Aug 3, 2011 at 1:50

A-OK's user avatar

A-OKA-OK

3,10410 gold badges34 silver badges42 bronze badges

1

Its because of the spaces in «Program Files (x86)».
From the eclipse menu bar do this

  1. Go to Window > Preferences
  2. Click Android
  3. At the «SDK Location bar» change it from C:Program Files (x86)Androidandroid-sdk to C:Progra~2Androidandroid-sdk

It should work perfectly now. (However if you’re using a 32bit system then you’d have to change it to ‘Progra~1’ not 2.)

parkerfath's user avatar

parkerfath

1,6261 gold badge12 silver badges18 bronze badges

answered Aug 14, 2011 at 20:51

Zeeno's user avatar

ZeenoZeeno

2,6418 gold badges36 silver badges60 bronze badges

3

Assuming Windows install:

  1. Create an AVD with the Android SDK and AVD Manager, remember what AVD name you used.
  2. Start Command Prompt, go to the SDK Tools folder (e.g. C:Program Files (x86)Androidandroid-sdktools.
  3. Type emulator.exe -avd "avd_name, (e.g. emulator.exe -avd AVD_1.5).

biegleux's user avatar

biegleux

13.2k11 gold badges44 silver badges52 bronze badges

answered Sep 20, 2012 at 12:11

random_dude's user avatar

Asked
11 years, 6 months ago

Viewed
4k times

It won’t start the virtual device. Why can’t things just work??

I’d rather not reinstall everything outside Program Files directory and I don’t know and don’t care what Eclipse is.

asked Aug 3, 2011 at 1:50

A-OK's user avatar

A-OKA-OK

3,10410 gold badges34 silver badges42 bronze badges

1

Its because of the spaces in «Program Files (x86)».
From the eclipse menu bar do this

  1. Go to Window > Preferences
  2. Click Android
  3. At the «SDK Location bar» change it from C:Program Files (x86)Androidandroid-sdk to C:Progra~2Androidandroid-sdk

It should work perfectly now. (However if you’re using a 32bit system then you’d have to change it to ‘Progra~1’ not 2.)

parkerfath's user avatar

parkerfath

1,6261 gold badge12 silver badges18 bronze badges

answered Aug 14, 2011 at 20:51

Zeeno's user avatar

ZeenoZeeno

2,6418 gold badges36 silver badges60 bronze badges

3

Assuming Windows install:

  1. Create an AVD with the Android SDK and AVD Manager, remember what AVD name you used.
  2. Start Command Prompt, go to the SDK Tools folder (e.g. C:Program Files (x86)Androidandroid-sdktools.
  3. Type emulator.exe -avd "avd_name, (e.g. emulator.exe -avd AVD_1.5).

biegleux's user avatar

biegleux

13.2k11 gold badges44 silver badges52 bronze badges

answered Sep 20, 2012 at 12:11

random_dude's user avatar

  • Remove From My Forums

 locked

Job To Execute A SSIS Package Fails — The Command Line Parameters Are Invalid

  • Вопрос

  • I have created a job to execute a SSIS package located in the SSIS Package Store.  When starting the job I receive an error.  The history log reports:

    Message
    Executed as user: DOMHARRPROMASTSQLMAIL. The command line parameters are invalid.  The step failed.

    This is the command line:

    /DTS «/File System/DataWarehouse/AgencySCD» /SERVER ntharrsqlt500 /MAXCONCURRENT » -1 » /CHECKPOINTING OFF

    What am I doing wrong?

Ответы

  • Steve,

    I believe the first problem you are having is a bug.  The slashes should be backslashes or the quotes need to be escaped (i.e. «).  Can you please file this bug.

    The 2nd problem is most likely a permissions problem with the proxy the package is running against.  Does the user that the job step is running as have permissions it needs to execute the package.  You can run the package under this account from the command line (using runas or logging in as that user) and seeing if the package will execute or not.  If not then it is a permissions problem.

    Thanks,

  • FYI.  Microsoft confirmed that the error message «The command line parameters are invalid» issue mentioned above is a bug and has been resolved in the next «drop» of SQL Server 2005.

    In researching further into my second issue where the package execution fails when running it through a SQL Server Agent Job (it works fine when running it via dtexecui or dtexec from the command line) — I implemented logging into the job step and discovered that the job failed when it got to the Script Task in my package.  I will post this issue into a new thread.  

Firefox logo

When I get an email photo from a cell phone it is saved in the download folder (which is another problem), and when I try to open it in that folder I get the above error message. I am able to open the picture in the body of the email however. I would like to save those pictures in «My Documents/Pictures.»
Thanks…WIN 7 system

When I get an email photo from a cell phone it is saved in the download folder (which is another problem), and when I try to open it in that folder I get the above error message. I am able to open the picture in the body of the email however. I would like to save those pictures in «My Documents/Pictures.»
Thanks…WIN 7 system

Chosen solution

If the image is displayed in the body at the size you want, you may be able to save it using one of these approaches:

  • right-click image > Save Image As…
  • right-click (anywhere on page) > Page Info > Media tab > select image > «Save As» button

To change your download folder, or turn on the dialog to let you choose every time, check out this article: Startup, home page, tabs, and download settings.

Does that work?

Regarding the error message in your subject line, I don’t know what is causing that. Which Zip/Unzip program do you use?

Read this answer in context
👍 0

All Replies (3)

Chosen Solution

If the image is displayed in the body at the size you want, you may be able to save it using one of these approaches:

  • right-click image > Save Image As…
  • right-click (anywhere on page) > Page Info > Media tab > select image > «Save As» button

To change your download folder, or turn on the dialog to let you choose every time, check out this article: Startup, home page, tabs, and download settings.

Does that work?

Regarding the error message in your subject line, I don’t know what is causing that. Which Zip/Unzip program do you use?

I am able to open the photo in the body of the email just fine. When I get the msg to save, it always is saved in my download folder. When I go to that folder and click on the file, I get the error msg. I did a search for a Zip program from the Start button and it seems I dont have a Zip program installed. Any suggestions for a good one?

Hi RobertRivers,

  • You should be able to take control of the folder for saving images as described in the article linked above. (Email notifications are plain text and do not contain the actual links, so you need to revisit the thread to click through.)
  • While there are many Zip utilities, if you would prefer one that is free and open source, you could try 7-zip from here: http://www.7-zip.org/. When creating your own archives, choose the Zip format (instead of the 7z format) for maximum compatibility.

Понравилась статья? Поделить с друзьями:
  • Invalid client id код ошибки 15
  • Invalid characters in hostname java как исправить
  • Invalid character in hostname java как исправить
  • Invalid captcha error message
  • Invalid bios image gigabyte как исправить