Android模拟器无法启动,提示“invalid command-line parameter”

我在Eclipse中写了一个简单的“hello world”程序,我在java文件中什么都没有加,只在main.xml 中加了text view ,像下边这样:

//main.xml文件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="Hello World"
    />
</LinearLayout>

当我运行我的程序的时候,它在控制台显示如下边的错误:

//控制台输出
[2012-09-12 07:10:22 - demo] ------------------------------
[2012-09-12 07:10:22 - demo] Android Launch!
[2012-09-12 07:10:24 - demo] adb is running normally.
[2012-09-12 07:10:24 - demo] Performing com.demo.DemoActivity activity launch
[2012-09-12 07:10:25 - demo] Automatic Target Mode: launching new emulator with compatible AVD 'vishal'
[2012-09-12 07:10:25 - demo] Launching a new emulator with Virtual Device 'vishal'
[2012-09-12 07:11:06 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
[2012-09-12 07:11:07 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2012-09-12 07:11:07 - Emulator] please use -help for more information

//--------------------------------------------------------------------------------/

这表明,因为一些原因我的ACD无法启动,我应该怎么做才能解决这个问题?

在Eclipse中,如果你的SDK路径是 C:\Program Files (x86)\ ,把它改成C:\PROGRA~2.
如果你的系统是windows32位, C:\Program Files\,改变路径到C:\PROGRA~1.
enter image description here

SDK的路径不能包含任何的空间就会出现R12这个问题。
默认的安装路径是:C:\Programme Files(x86)\Android\android-sdk.他们现在可以解决这个问题,但是你可以通过改变SDK在eclipse中的路径到C:\PROGRA~2\Android\android-sdk来解决这个。
如果你正在使用windows32位系统,改变路径到C:\PROGRA~1\Android\android-sdk.

我建议创建一个名称为C:\Android,指向C:\Program Files (x86)\Android\android-sdk-windows:的目录结点
MKLINK /J C:\Android "C:\Program Files (x86)\Android\android-sdk-windows\"
然后将最新创建的结点作为你的Eclipse ADT Plugin SDK(Eclipse menu\ Window\ Preference\ Android)的路径。这可能对一些在路径有空间的问题的工具/插件都有帮助。

SDK的路径不能包含任何的空间就会出现R12这个问题。
SDK的路径不能包含任何的空间就会出现R12这个问题。

SDK的路径不能包含任何的空间就会出现R12这个问题。

在Eclipse中,如果你的SDK路径是 C:\Program Files (x86)\ ,把它改成C:\PROGRA~2.
如果你的系统是windows32位, C:\Program Files\,改变路径到C:\PROGRA~1.
enter image description here