Android模拟器没有启动,显示出与QUOT;无效的命令行参数" [英] The Android emulator is not starting, showing "invalid command-line parameter"

查看:187
本文介绍了Android模拟器没有启动,显示出与QUOT;无效的命令行参数"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我取得 Eclipse中一个简单的Hello World程序。我什么都不添加到Java文件,只添加的文件文本视图的main.xml

I made a simple "Hello World" program in Eclipse. I added nothing to a Java file and only added a text view in file main.xml as

//main.xml file
<?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>

而现在,当我运行我的程序它显示在控制台下面。

And now when I run my program it shows the following in the console.

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

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

这显示了我的 Android虚拟设备(AVD)不能由于某种原因开始。我能做些什么来解决这个问题?

This shows my Android Virtual Device (AVD) could not start due to some reason. What can I do to fix this problem?

推荐答案

  • 如果在Eclipse的SDK位置路径是 C:\ Program Files文件(x86)的\ 更改为 C:\ PROGRA〜2 \
  • 如果您运行的是32位的Windows, C:\ Program Files文件\ ,将路径更改为 C:\ PROGRA〜1 \

  • If your SDK location path in Eclipse is in C:\Program Files (x86)\ change to C:\PROGRA~2\.
  • If you are running 32-bit Windows, C:\Program Files\, change the path to C:\PROGRA~1\.
  • 这篇关于Android模拟器没有启动,显示出与QUOT;无效的命令行参数&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆