adb导致AdbCommandRejectedException设备脱机 [英] adb causing AdbCommandRejectedException device offline

查看:108
本文介绍了adb导致AdbCommandRejectedException设备脱机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Adb在Android Studio中显示此异常

Adb is showing this exception in Android studio

PropertyFetcher:AdbCommandRejectedException获取设备ZX1B32QXZV的属性:设备未授权。请检查您设备上的确认对话框。

PropertyFetcher: AdbCommandRejectedException getting properties for device ZX1B32QXZV: device unauthorized. Please check the confirmation dialog on your device.

我已确认对话框,甚至格式化了操作系统

I have confirmed the dialog and even formatted my OS

推荐答案

在Android Studio中转到启动配置(编辑配置:...)。
然后在目标设备下:选择以下值

in Android Studio go to the launch configuration ("Edit Configurations:..."). Then under Target Device: choose the following value


  • 显示选择对话框

我遇到了同样的问题,并将其设置为 USB Device。尝试部署到仿真器时,这会导致连接失败。

I had the same problem and had it set to "USB Device". This caused the connection to fail when trying to deploy to the emulator.

这篇关于adb导致AdbCommandRejectedException设备脱机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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