无效的命令行参数时的Andr​​oid执行时命令行、参数、oid、Andr

2023-09-12 02:17:13 作者:情话烫心

当我点击运行为Android应用程序选项,它显示了以下错误:

  [2010-08-16 16点56分35秒 - 模拟器]无效的命令行参数:HTTP://主机名:端口。
[2010-08-16十六点56分35秒 - 模拟器]提示:使用@foo推出名为'富'的虚拟设备。
[2010-08-16十六点56分35秒 - 模拟器]请使用-help以获取更多信息
 

解决方案

显然,这个问题的路径空间,所以只从:

C:\ Program Files文件\机器人\ Android的SDK

要: C:\ PROGRA〜1 \机器人\ Android的SDK

如果你有一个64位系统

来源: C:\ Program Files文件(x86)的\机器人\ Android的SDK 到:

C:\ PROGRA〜2 \机器人\ Android的SDK

在Windows - > preferences-> Android的变化SDK位置,如上图所示。

这是翻译: http://satoriwd.com/astath/?p=11

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