Android Studio - ADB 错误 - “...设备未经授权.请检查您设备上的确认对话框." [英] Android Studio - ADB Error - "...device unauthorized. Please check the confirmation dialog on your device."

查看:49
本文介绍了Android Studio - ADB 错误 - “...设备未经授权.请检查您设备上的确认对话框."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我开始在我的 ADB 日志中收到错误,我认为,这导致我的设备现在显示我的应用程序的任何 logcat 输出.我正在获取除应用程序本身之外的所有 logcat 输出.

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.

推荐答案

当您连接手机时,您错过了手机中的指纹证书授权对话框,请尝试将 USB 模式更改为媒体模式,或其他与您现有模式不同的模式然后重新连接您的设备,或转到开发人员选项 -> 撤销 USB 调试并重新连接,观察对话框并单击接受,这应该可以解决您的问题.

you have missed the Fingerprint Certificate Authorization dialog in your phone when you connected it, try to change the USB mode to Media, or another different than the one you have in and then reconnect your device, or go to Developer Options -> Revoke USB Debugging and reconnect, watch for the dialog and click on accept, that should solve your problems.

如果这不起作用,请再次设置您的 ANDROID_SDK_HOME,然后:

If that doesn't work, set your ANDROID_SDK_HOME again, and then:

  1. 拔下设备
  2. 运行:

adb kill-server 
adb start-server

  • 插入设备

  • Plug in device

    这篇关于Android Studio - ADB 错误 - “...设备未经授权.请检查您设备上的确认对话框."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆