The created Eclipse application will not run in the Android emulator

I am new to Eclipse and Android programming and trying to teach myself how to create Android applications. The problem is that applications will not run in the emulator.

  • I installed the Eclipse SDK version: 3.7.2.

  • I installed Android SDK and AVD

  • I created the HelloWorld application from Eclipse.

  • Press F11 to launch HelloWorld.

  • Mesasge appears: "The adb connection is down and a serious error has occurred."

  • There is no Android emulator.

  • Check the android sdk directory, there is adb.exe.

  • Press F11 again,

  • Android emulator is running, but HelloWorld application is not working

  • There is no "HelloWorld" application in the application manager.

  • I uninstall R.java and run it again, the result is the same (no HelloWorld application).

  • adb.exe , ( HelloWorld).

main.xml

<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello" />

    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="This is my first Android Application" />

    <Button
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="And this is a clickable button" />

    </LinearLayout>

=============================================== ======================

, , .

: (+ ) . Virtual devices

Message from console

- ?

15 20 ( ). ? error in code


,

. , , Android 64- / ( , ). Win7 64bit + Eclipse 64bits. , , , .

, ( XP) 32 . .

AndroDev .


+3
5

AVD. .

adb , eclipse

 1. Go to the Android SDK tools directory in Command Prompt
 2. type adb kill-server
 3. then type adb start-server
 4. No error message is thrown while starting ADB server, then adb is started successfully.

Eclipse. .

+1

Android VDM. . . → > → > AVD. Android. may

+1

, AVD, , :

  • Eclipse
  • adb adb kill-server
  • adb ,
  • adb adb start-server
  • Eclipse

, . , .

+1

"" SDK.

0

First of all, the packages must be fully installed and create AVD from the AVD and SDK manager and run the AVD emulator. The work you do is buddy.I hope the plugins are perfectly installed ...

0
source

All Articles