Android Studio - ADB Error - “…device unauthorized

2020-01-27 10:21发布

So I started getting errors in my ADB logs which, I think, are causing my device to now display any logcat output for my app. I am getting all the logcat output except the one from the app itself.

PropertyFetcher: AdbCommandRejectedException getting properties for device 04799057970ed1fc: device offline
PropertyFetcher: AdbCommandRejectedException getting properties for device 03799467970ed5fg: device unauthorized. Please check the confirmation dialog on your device.

17条回答
爷、活的狠高调
2楼-- · 2020-01-27 11:07

This happened to me because I enabled usb debug previously on another pc. So to mke it work on a second pc I had to disable usb debugging and re-enable it while connected to the second pc and it worked.

查看更多
Summer. ? 凉城
3楼-- · 2020-01-27 11:09

In my case, it was literally a bad USB cable. Apparently it was right on the edge - adb logcat would work, but about half the time I would get this error when trying to push an app to the device.

Changed to a different cable, and everything was fine. The old cable was also very slow at charging, so I should have suspected it sooner...

查看更多
爷、活的狠高调
4楼-- · 2020-01-27 11:10

Simple! You must only acept request, on your phone.

查看更多
看我几分像从前
5楼-- · 2020-01-27 11:12

I've got the same message too. In my case, I have changed my dev environment to another notebook pc and my device is samsung galaxy note 2014 edition. My OS is windows 7

My galaxy note condition listed as following

  • developer option activated
  • USB debugging checked

The error message was "device unauthorized. Please check the..."

In general, the location of the default android setting was C:/Users/Your_login_name/.android then I copied and pasted all files in the '.android' folder to my new pc's setting folder.

After that the problem was gone.

I think the problem was adbkey file mismatched. Also, I didn't have any menu name such as revoke adb authorization.

查看更多
Luminary・发光体
6楼-- · 2020-01-27 11:13

1) Go to Phone Setting > Developer options > Revoke USB debugging.

2) Turn off USB debugging and Restart Again.

It will work definitely, in my case it worked.

查看更多
ゆ 、 Hurt°
7楼-- · 2020-01-27 11:15

This might help - Just Download and install the Android SDK version(same as your mobile's android version), then run.

查看更多
登录 后发表回答