Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (retired 2014) Shaking Things Up Running an App on a Device

Shane Desouza
Shane Desouza
3,523 Points

Trouble with connecting phone to Eclipse

Hi,

I have a Vodafone Smart 4 Mini, their latest phone, and decided to use it for testing the Crystal Ball app. I checked for the driver, it's there, I went and enabled developer options, that was on, but Eclipse is not recognizing it.

Can someone please help me with this?

3 Answers

Calvin Nix
Calvin Nix
43,828 Points

Hey Shane,

Right click on your project in the Package Explorer. You will see an option that says "Run as"... with your phone connected, run your project from here and it should connect to your phone.

thanks, Calvin

Shane Desouza
Shane Desouza
3,523 Points

Hi Calvin,

I have run the configurations and all that, but my stupid phone is still not showing up in the list. Is this an Eclipse bug, or is there something I have done wrong?

Calvin Nix
Calvin Nix
43,828 Points

Hey Shane,

It is possible that your phone is not compatible. Or it may just be another Eclipse quirk.

Another possible solution would be to use Genymotion. This is the emulator that I use because the default Eclipse emulator is very slow.

Eclipse is picky with this stuff. I use both Eclipse and Android Studio for this track, and if use Android Studio before Eclipse, Eclipse will not recognize my phone if it's still plugged in from an AS session. This is an ADB problem, IMHO. If you are running Windows (or Linux), close Eclipse, get into the command line, check to see if adb is running, if not, start it, and run the devices command for adb to verify the device is recognized. Kill the adb server, and restart Eclipse. As stated previously, get into Run configurations for your app, but choose the LET ME CHOOSE (or whatever it's called exactly) option. Then you can choose what YOU want it to run on.

Shane Desouza
Shane Desouza
3,523 Points

Hi Roland,

I don't use Android Studio, because I prefer to use Eclipse. So this will be kinda useless to me, sorry.

Nothing really specific to AS in my answer. Use adb manually and verify your phone is recognized by it. If adb sees it with the devices switch, eclipse should see it.