本文介紹了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 模擬器未啟動,顯示“無效的命令行參數";的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!