Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old February 2nd, 2012, 07:59 AM   #1 (permalink)
New Member
 
Join Date: Jan 2011
Posts: 7
 
Device(s):
Thanks: 2
Thanked 0 Times in 0 Posts
Default 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.

matt198992 is offline  
Last edited by matt198992; February 2nd, 2012 at 08:02 AM.
Reply With Quote
Sponsors
Old February 2nd, 2012, 03:19 PM   #2 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

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.
jiminaus is offline  
Reply With Quote
The Following User Says Thank You to jiminaus For This Useful Post:
matt198992 (February 6th, 2012)
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:26 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo