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
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. **.
© 2024 OneMinuteCode. All rights reserved.