Apps Newbie question - app not running in AVD?

Thread Starter

Rank:

None

Points:

Posts:

Joined:

Apr 25, 2011

Firstly, thanks for any help anyone can offer me with my foray into Android app development. I've been a Java developer for many years although I've been in management circles in recent years so a little rusty.

I've got Eclipse (Indigo) installed and I've used Eclipse extensively in the past so nothing too new to me there. I've installed the Android SDK and all the associated packages via the SDK Manager. All the icons have appeared in Eclipse and I can start an Android Project so it all looks good. I've created two AVDs - one 4.0 and another 2.1.

The trouble I'm having is getting my app (ANY app) to run in the AVD. I've followed a number of tutorials on how to do this and they are all very similar. I create a Run Configuration naming my Project and the default activity (created at the same time I created the Project) and associated it with one of the AVD (appropriate to the Project version.)

The AVD starts and eventually I get the full Android home screen, as expected, but that's it. Nothing else. I've watched a video on YouTube showing what should happen and my console output isn't the same. I don't get the bit about installing the apk.

Rank:

None

Points:

Posts:

Joined:

Jul 13, 2010

I have actually experienced a similar problrm on occasion with the newest adt build, but simply closing out the emulator and relaunching it usually fixes the issue. Other than that, I'm really not sure what advice to offer.

Thread Starter

Rank:

None

Points:

Posts:

Joined:

Apr 25, 2011

Thanks for your reply but after a number of shutting the AVD down and bringing it back up it's still not working. I'm kinda lost without knowing where to start looking without investigating how to deploy manually onto AVD but that doesn't feel like the right way to do it.

No point in having a useful IDE if I'm not going to use it properly...

Thread Starter

Rank:

None

Points:

Posts:

Joined:

Apr 25, 2011

This is driving me absolutely bonkers. I've re-installed everything following the steps on here and I'm getting exactly the same issue. If I run the AVD through AVD Manager and then start my project via Eclipse then a second AVD is launched with warnings about "changes will not be persisted" because the SD image is already in use (from the AVD manager version that is running.) Still not a single mention of the package being uploaded anywhere in Eclipse console.

Joined:

Apr 25, 2011

Every time I try to run the project from Eclipse it wants to start a new VMD and I'm still not getting any messages about packages being installed/deployed to the VMD. I've tried using a different version of Eclipse but it doesn't make any difference.

I'm not entirely clear on what the adb does but it doesn't list any devices attached regardless of what is happening. :/

Would it be possible to disable cpu modeling? i.e. take the hw.cpu.model line out. Though I somehow feel you'd have give that a shot already , remove SD card allocation, use standard (get it to work and then incrementally add stuff back in)

Thread Starter

Rank:

None

Points:

Posts:

Joined:

Apr 25, 2011

Well, I've had an interesting outcome. I uninstalled Java 7 and put 6 on and... it still didn't work. I've pretty much tried uninstalling and reinstalling everything over and over again but nothing has worked.

So, as they say, if you do the same thing over and over again you can only expect the same result over and over again. Time to try something new. I created a virtual machine in Virtualbox running Windows 7 and without installing anything except what was absolutely necessary (OS, updates, Java 6, Android SDK, Eclipse) and... it worked straight away. Up popped my test app on the screen of the AVD - a virtual machine running in a virtual machine.

Clearly something in my main system is getting in the way but at least I appear to have a way forward. If I really can't figure out what's going on I'm going to have to re-install Windows on my machine but that's no biggie, I do it all the time.

Thread Starter

Rank:

None

Points:

Posts:

Joined:

Apr 25, 2011

To continue the theme I have completely re-installed my machine and so far my app is being deployed to the AVD. I'm going to keep piling my usual programs on until it stops. If I figure out exactly what was causing the issue I will post it here so that any other poor sole having the same problem might be able to help themselves.

Thread Starter

Rank:

None

Points:

Posts:

Joined:

Apr 25, 2011

Okay, I've identified what the problem is/was. I use Comodo Free for AV and Firewall and this was causing the problems. Despite clicking "Allow" on every request while it booted the AVD (and there were a lot) it must be blocking something. Strangely, even once I uninstalled Comodo it still didn't work complaining about abd. I had to remove the Android SDK and Eclipse then re-install before it worked again.

Is anyone else finding that their AV is causing problems with Android development?

Thread Starter

Rank:

None

Points:

Posts:

Joined:

Apr 25, 2011

After some testing it was definitely Comodo causing the issue and despite trying lots of different things with Comodo I couldn't stop it intefering with Eclipse. I've switched from Comodo to Avira and it's all working fine now. Strange.