It says "invalid command-line parameter" and the Android emulator cannot run.

Asked 2 years ago, Updated 2 years ago, 80 views

Eclipse created a simple Hello World program. There is no Java file and only TextView is made in main.xml.

//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 when I run the program, the same error appears below.

//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

//--------------------------------------------------------------------------------/ AVD cannot run because of this error. How do I fix it?

android android-emulator

2022-09-22 11:42

1 Answers

In this clip, the path to the SDK is *C:\Program Files (x86)\ ** If this is it, change it to *C:\PROGRA~2\* like this. For 32-bit windows, replace *C:\Program Files\* with *C:\PROGRA~1. **.

1


2022-09-22 11:42

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.