meaninglessdisplayname meaninglessdisplayname - 1 month ago 13
Android Question

Android emulator won't boot up

I'm trying to install android sdk and run my first application on my PC (Win7 64 bit). I followed instructions on http://developer.android.com from the beginning to http://developer.android.com/training/basics/firstapp/running-app.html When I try to start emulator (as mentioned on the last url) simply nothing shows up.

5 - Select the new AVD from the Android Virtual Device Manager and click Start.


It doesn't show any error messages. After launching AVD a process named adb.exe appears on task manager.

Below is eclipse console output when try to run my blank app from eclipse. On configurations, I set different target devices and selected starting activity manually. The same problem continues.

When AVD is started from outside of eclipse(
\sdk\platform-tools>android avd
):

[2013-03-22 08:50:48 - 1st] ------------------------------
[2013-03-22 08:50:48 - 1st] Android Launch!
[2013-03-22 08:50:48 - 1st] adb is running normally.
[2013-03-22 08:50:48 - 1st] Performing com.example.st.MainActivity activity launch
[2013-03-22 08:50:49 - 1st] Automatic Target Mode: launching new emulator with compatible AVD 'AvdTest'
[2013-03-22 08:50:49 - 1st] Launching a new emulator with Virtual Device 'AvdTest'


When AVD is started from eclipse:

[2013-03-22 09:22:44 - 1st] ------------------------------
[2013-03-22 09:22:44 - 1st] Android Launch!
[2013-03-22 09:22:44 - 1st] adb is running normally.
[2013-03-22 09:22:44 - 1st] Performing com.example.st.MainActivity activity launch
[2013-03-22 09:22:44 - 1st] Automatic Target Mode: Preferred AVD 'AvdTest' is not available. Launching new emulator.
[2013-03-22 09:22:44 - 1st] Launching a new emulator with Virtual Device 'AvdTest'


I also downloaded only sdk and installed eclipse plugin but result is the same.

Tried to use logcat also. Started it then started AVD, but logcat shows nothing. When I kill adb.exe from task manager,it kills logcat too.

\sdk\platform-tools>adb -e logcat
- waiting for device -

\sdk\platform-tools>


After reinstalling IDE/SDK a couple of times I decided to ask it here. What else I can do?

Edit : Folks, I have a virtual device. Please stop suggesting adding a virtual device.

Virtual Device Manager

SDK

Eclipse

Answer

I found it. In event viewer(Control Panel\All Control Panel Items\Administrative Tools\Event Viewer) clicked on Windows Log>Application on left menu and read error logs.

Event Log

I googled dll file mentioned in log (aticfx32.dll) and found the dll file belongs to ATI graphic cards. My PC has an Intel graphic card. While searching for solution I also found this web page and applied solution they used. It works like a charm.

Steps:

  1. Download your graphics card driver from intel's website
  2. Extract the zip somewhere, Location does not matter
  3. Go into Device Manager, (type Device Manager in the windows search bar)
  4. Click Display Adapters and Intel HD Graphics.
  5. Go to the tab labeled "Drivers"
  6. Click "Update Drivers" and "Browse my computer for drivers"
  7. Click "Let me pick from a list of drivers"
  8. Click the Have Disk Button,
  9. Navigate to where your extracted drivers are and go into the directory labeled "Graphics"
  10. Select the file named "igdlh64.INF"
  11. Click on the OK button and then click Next, the drivers should install
  12. After that you need to reboot, and after rebooting your drivers should be updated