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

Device Unauthorized

Hello forum again! Today I have gotten to the point where I am trying to link my Galaxy S5 to the Android Studio. I have downloaded the USB file and ran the .exe file that installed drivers. When I restart everything and go to Devices in Android Studio, it says the following.

device unauthorized. Please check the confirmation dialog on your device.

Im not sure what it is asking me to do except that I know it is saying that it is Unauthorized. I have also enabled USB debugging on my device. Any help would be great! Thanks!

2 Answers

Wesley Seago
Wesley Seago
10,424 Points

Try this:

Disconnect the phone from the computer. Go to Settings | System | Developer Options on the phone. Turn Off Developer Options. In the Developer Options menu, select "Revoke USB debugging authorization". Plug phone into computer. Turn On Developer Options. Select "Enable USB Debugging". A notification will pop up on the phone. Select "Always allow from this computer". Select "OK" on the notification.

You should be good to go after that.

Thank you this worked perfect!

Thank you, you are a lifesaver

Thanks. I was getting frustrated, but this fixed it.