Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 970
meaninglessdisplayname Avatar asked Mar 22 '13 07:03

meaninglessdisplayname


People also ask

What to do if emulator is not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

How do I boot AVD?

Starting the emulator Use the emulator command to start the emulator, as an alternative to running your project or starting it through the AVD Manager. Here's the basic command-line syntax for starting a virtual device from a terminal prompt: emulator -avd avd_name [ {- option [ value ]} … ]


1 Answers

I had the similar problem on OSX. My emulator works fine, but after some runs it won't start. I've solved that by :

  1. Go to .android directory (in my case it was Users/<username>/.android
  2. Go to avd folder
  3. Find the emulator that won't start (directory name will be the same as emulator)
  4. Remove all .img files from there. Do not remove .ini files.
  5. Try to run the simulator again.
like image 94
kamwysoc Avatar answered Sep 30 '22 21:09

kamwysoc