• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Virtual Device launching

For the hell of it, I decided recently to start learning a bit about programming for Android. It seems fun, and increasingly useful as of late. I am also pretty decent at coding, so I figured I would give it a go.

I have never messed with virtual devices though before, and am at a loss here. It seems every time I compile and launch my project, I have to re-launch the emulator (that takes forever and a half to load mind you)? I did some searching and found ways to SPEED UP the launch, but it still takes longer than is convenient to preview my project.

I saw that setting the run configuration to manual would simply re-install my apk without re-launching the emulator, but the emulator (or virtual device) is not listed under available devices (in fact, nothing is). It only gives me the option to select the launcher and start it anew.

Is there some hidden setting I am missing here? I am assuming this line is the problem (shown in the consol section when running my project with a virtual device all ready open):
[2012-02-01 10:17:33 - Hello World] Automatic Target Mode: Preferred AVD 'DefaultAndroidEmu' is not available. Launching new emulator.

Any help is appreciated, any more information needed, I will provide. Thanks in advance!!

Edit: sorry, I did not mention I am using the Eclipse program with the Android package.
 
You have a problem with your adb server.

A workaround would be to manually start your AVD via AVD Manager, then run these two commands.
Code:
adb kill-server
adb start-server
The adb command is in the platform-tools directory of the Android SDK. You might need to cd to it first.

After you do this, you should see your virtual device in Eclipse. You'll need to do these two command every time you start the emulator, until you can figure out what's the problem with the adb server.

If the path to the SDK has spaces, try uninstalling the SDK and re-installing it so the path to the SDK doesn't have spaces, e.g. C:\AndroidSDK.
 
Back
Top Bottom