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 an Interactive Story App (Retired) Finishing the User Interface Creating the Story Layout

Haoqing Zhu
Haoqing Zhu
5,681 Points

Device connect to android studio

when I connect my samsung galaxy note s3, in the device logcat it shows: device unauthorized. Please check the confirmation dialog on your device. I wanna know how to solve it.

2 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Haoqing;

Is your device in USB debug mode?

Ken

Haoqing Zhu
Haoqing Zhu
5,681 Points

Yes, I clicked the USB debugging.

Wesley Seago
Wesley Seago
10,424 Points

As Ken said above, first you need to enable USB debugging. It is very helpful at this point to check the box that keeps it active during debugging. After that, make sure the device is connected and unlocked before you build. You may need to answer an alert dialog on the device the first time, depending on several factors, but that should be it at that point. When the IDE asks where to deploy, select your device and you should be good to go.