Adb shows 'device' in command line but unauthorized in Android Studio

3.1k views Asked by At

I am using USB debugging with my Cubot S208 for my Android App.

If I type adb devices into command line I receive the following:

0123456789ABCDEF device

So clearly the device is authorized.

However, in Android Studio I receive the following message:

for device 0123456789ABCDEF: device unauthorized. Please check the confirmation dialog on your device.

Why is this the case?

The device is recognized by Android studio under the name "Cubot S208" properly recognizes the debuggable applications too.

So everything seems fine.

I have ALWAYS allowed USB debugging from my Laptop when the message came up on my phone screen.

Any ideas?

2

There are 2 answers

1
Pankaj kumar On BEST ANSWER

for device 0123456789ABCDEF: device unauthorized. Please check the confirmation dialog on your device.

Execute these adb commands:

adb kill-server 
adb start-server

After that reconnect your device and tick debugging option on device.

0
dave On

Try clearing the debugging authorizations from your phone, disconnect it and reconnect it. Failing that try killing adb and then try launching