简体   繁体   中英

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

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?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM