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

前端 未结 17 1145
轻奢々
轻奢々 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:35

    It comes down to just making a new AVD with moderate settings, at least that's what fixed it for me. Though every time I close it I have to make a new one. Guess just wait for a patch.

    Click Android Device Manager button on the second toolbar.

    Click New.

    Set up a mid-range device, basically just select a phone model from the middle of the list that isn't a tablet. The memory should fill it self in, then just put like 20mb for the SD card.

    Click Start. The AVD will now start up and load the Android OS.

    Then Run your app on said device.

    Once you get this problem it seems to remain unless you do a full reinstall... Basically, always start the AVD first, let it hit the android home screen, then run your app. This way Eclipse doesn't overload the sluggish emulator.

    0 讨论(0)
  • 2020-11-30 11:39

    Try 1 more time. If it occurs again

    Goto Project->clean and

    Right click your project and choose refresh..

    0 讨论(0)
  • 2020-11-30 11:40

    I had a similar problem -- it ended up I wasn't waiting long enough for the emulator to run the OS before trying to install the app. Launch the emulator and then wait for the home screen to appear before running the app in Eclipse.

    0 讨论(0)
  • 2020-11-30 11:40

    for me didn't worked:

    ./emulator -noaudio @androidDev1
    

    so I used:

    ./emulator @androidDev1
    

    and it worked perfectly! :)

    Also check Eclipse IDE:

    Windows->Preferences->Android->Launch->Options 
    

    It should be empty

    0 讨论(0)
  • 2020-11-30 11:41

    Try to use the command emulator -avd emulator_name -wipe-data

    0 讨论(0)
  • 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!

    0 讨论(0)
提交回复
热议问题