Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Simple Android App (2014) Testing and Debugging Running the App on a Device

Benjamin Lopez
Benjamin Lopez
3,022 Points

Not able to connect phone

Hi I am having trouble connecting my Samsung Galaxy S4 to android studio. I have already enabled the debugging part.

To be able to help with the problem, we'll need to know a bit more about your setup. Are you running Windows, Linux, or on a Mac?

Benjamin Lopez
Benjamin Lopez
3,022 Points

I'm sorry I am running windows. I have tried to follow a few other forums but still not luck.

6 Answers

The first step to take for troubleshooting this is to make sure you have downloaded and installed the drivers for the phone from Samsung's website.

Benjamin Lopez
Benjamin Lopez
3,022 Points

okay I got that now. There are a few folders in the USB Drive folder that Samsung has. I am unsure which one to use. I can post them if you need it?

I just want to make sure, you downloaded the SAMSUNG_USB_Driver_for_Mobile_Phones.exe file from the Samsung site and ran the installer? If so, I'd recommend reattaching your phone and seeing if Android Studio can see it. If not, there are other steps we can take.

Benjamin Lopez
Benjamin Lopez
3,022 Points

Yes I did. I closed and re-opened android studio. There is a device showing up in "Devices" but it says its unauthorized.

From what I've seen, when you see that its unauthorized, there should be a popup on the phone asking if you want to allow access from the machine. I've seen it glitch out a few times where you may have to disconnect and reconnect the phone a couple of times before that popup actually appears on the phone.

Benjamin Lopez
Benjamin Lopez
3,022 Points

Yeah so I followed this forum example: https://teamtreehouse.com/forum/device-unauthorized

and it worked. before your steps it wasnt asking me about my computer. Awesome! Thanks for your help! I hope my forum helps others!

Thank you, you are a lifesaver!!