"无效的命令行参数"同时努力使Android的一个Hello World示例错误 [英] "invalid command-line parameter" error while trying to make a hello world example for Android

查看:137
本文介绍了"无效的命令行参数"同时努力使Android的一个Hello World示例错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚决定开始开发Android应用程序,我遇到了一些问题。
我得到这个错误,当我尝试建立从 HTTP一个Hello World的例子:/ /developer.android.com/resources/tutorials/hello-world.html#top

I just decided to start developing apps for Android and I encountered some problems. I get this error when I try to build a hello world example from http://developer.android.com/resources/tutorials/hello-world.html#top:

[2011-07-17 0时22分46秒 - 模拟器]无效的命令行参数:
  文件\\ Android的\\ Android的SDK \\工具/仿真器,arm.exe。 [2011-07-17 0点22分46秒
   - 模拟器]提示:使用@foo推出名为'富'的虚拟设备。
  [2011-07-17 0点22分46秒 - 模拟器]请使用-help以获取更多信息。

[2011-07-17 00:22:46 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe. [2011-07-17 00:22:46 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'. [2011-07-17 00:22:46 - Emulator] please use -help for more information

我已经按照该教程中的一切,我怎么解决这个问题?

I have followed everything in that tutorial, how do I fix this?

推荐答案

有与路径的错误。你必须用C你的SDK:\\ Program Files文件,但SDK不能在路径中有空格的工作(这就是为什么你只看到参数:文件\\的Andr​​oid \\ ...)。将其安装到一个位置,不能有空格,例如直接到C:\\ Android的SDK。我想它的确定剪切和放大器;粘贴整个文件夹到新的位置,只是改变在Eclipse preferences的路径。

There is a bug with paths. You have your SDK in C:\Program Files, but the sdk can't work with spaces in the path (this is why you only see "parameter: Files\Android\..."). Install it into a location without spaces, e.g. directly to C:\android-sdk. I think it's ok to cut & paste the complete folder into the new location and just change the path in the eclipse preferences.

这篇关于"无效的命令行参数"同时努力使Android的一个Hello World示例错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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