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 (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.