HelloAndroid]emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'!

前端 未结 17 1248
轻奢々
轻奢々 2020-11-30 11:12

I am new to Android. Follow the HelloAndroid Tutorials by use Eclipse. After run HelloAndroid, the AVD \'xian_avd2\' lunched, but stop there, no \" Hello, Android\" display

17条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 11:42

    The problem as I discovered lays in the fact the the project has no appropriate Virtual Device defined for it in the AVD manager.

    So the recommended steps in eclipse are:

    1. Go to "Project"-> Properties-> Android.
    2. On the right pane see what line is checked in the Project build target.
      Remember the target platform number that appears in the selected line.
    3. Go to "Windows"-> AVD Manager.
    4. Check the list of existing Android Virtual Devices for a device that matches the Platform and API level that you have set for your project (see step #2 above).
    5. If there is no line that includes an AVD for your platform (as I suspect), add it using the "New" button.
    6. A "Create New Android Virtual Device" window will be opened. set a new device name. in the "Target" selection box choose the right platform for your project.

    Enjoy your emulator once again!

提交回复
热议问题