The Android emulator is not starting, showing quot;invalid command-line parameterquot;(Android 模拟器未启动,显示“无效的命令行参数;)
本文介绍了Android 模拟器未启动,显示“无效的命令行参数";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 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: FilesAndroidandroid-sdk ools/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 toC:PROGRA~2. - If you are running 32-bit Windows,
C:Program Files, change the path toC:PROGRA~1.
这篇关于Android 模拟器未启动,显示“无效的命令行参数";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
织梦狗教程
本文标题为:Android 模拟器未启动,显示“无效的命令行参数";
基础教程推荐
猜你喜欢
- 如何从 logcat 中删除旧数据? 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
