Recently installed Eclipse and Android SDK. Unable to get emulator to work. Hanging on a clock screen

I am new to development.

I installed the Eclipse and Andoid SDK. But I can not get the emulator to work. I tried notepad code sample and Android Hello code. Every time I try to run any application, it just hangs on the clock screen (the screen also says that it is 50% charged and has a lock).

Here is the console information for an example notepad application.

[2011-03-11 15:27:17 - samplenotpad] ------------------------------ [2011-03-11 15:27:17 - samplenotpad] Android Launch! [2011-03-11 15:27:17 - samplenotpad] adb is running normally. [2011-03-11 15:27:17 - samplenotpad] Performing com.example.android.notepad.NotesList activity launch [2011-03-11 15:27:17 - samplenotpad] Automatic Target Mode: launching new emulator with compatible AVD 'myEmulator3' [2011-03-11 15:27:17 - samplenotpad] Launching a new emulator with Virtual Device 'myEmulator3' [2011-03-11 15:27:19 - samplenotpad] New emulator found: emulator-5556 [2011-03-11 15:27:19 - samplenotpad] Waiting for HOME ('android.process.acore') to be launched... [2011-03-11 15:27:33 - Emulator] emulator: emulator window was out of view and was recentred [2011-03-11 15:27:33 - Emulator] [2011-03-11 15:28:17 - samplenotpad] HOME is up on device 'emulator-5556' [2011-03-11 15:28:17 - samplenotpad] Uploading samplenotpad.apk onto device 'emulator-5556' [2011-03-11 15:28:17 - samplenotpad] Installing samplenotpad.apk... [2011-03-11 15:29:09 - samplenotpad] Success! [2011-03-11 15:29:10 - samplenotpad] Starting activity com.example.android.notepad.NotesList on device emulator-5556 

Then nothing ...


I have already tried the following steps from this page, but still not working.

http://developer.android.com/guide/appendix/faq/troubleshooting.html#eclipse

Eclipse does not talk to the emulator

When communication between Eclipse and the emulator does not occur, symptoms may include: nothing happens when you click run, an emulator hanging while waiting for a debugger to connect, or errors that Eclipse reports cannot find the emulator or shell. The most common symptom is that when you press the start button, the emulator starts (or is already running), but the application does not start.

You may find that any of these steps will fix the problem, and with practice, you can probably figure out which one you need for your specific problem, but for a start the safest option is to run them all in order

  • Close the emulator if it is running.
  • Make sure that all processes of the emulator are killed (sometimes they can freeze, use ps on unix or mac or task manager in the process view on windows).
  • Exit Eclipse From the command line, enter: adb kill-server, start Eclipse and try again

I wonder if I need to try uninstalling and reinstalling some component?

I am running Windows 7.

Any help that is greatly appreciated is as simple as possible in English, please :-)

+6
android android-emulator
source share
5 answers

Are you on the unlock screen? Have you unlocked the "phone". You need to drag the unlock button with the mouse by clicking on the button and then dragging it to the right.

+14
source share

Since you are new to pls development, try the next step

  • Restart Eclipse
  • Open the Android SDK and AVD Manager
  • Delete existing AVD
  • Restore AVD using a set of options (e.g. name, Android version, etc.)
  • Return to your code and run the program again.

Now you can run the sample programs again.

Hope this helps

Bean

+1
source share

Setting eclipse, adb and the emulator to high priority (this did not allow me to install it in real time), restarting eclipse and uninstalling the emulator and creating a new one that actually made the emulator work for me. Thanks.

+1
source share

Just press the power button once (it's on the right). Now try dragging the unlock button onto the screen and it should work.

0
source share

It seems that the memory resources are insufficient to run the emulator. One thing you can do is that when the emulator hangs for the first time, just close it and restart. After that, go to the task manager and set the emulator and adb priority in real time.

-one
source share

All Articles