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.
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.
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 ]} … ]
I had the similar problem on OSX. My emulator works fine, but after some runs it won't start. I've solved that by :
.android
directory (in my case it was Users/<username>/.android
avd
folder.img
files from there. Do not remove .ini
files.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With