Android Studio 中的 AdbCommandRejectedException

AdbCommandRejectedException in Android Studio

我正尝试在 Android Studio 中 运行 一个项目,但我一直收到这个奇怪的错误。

PropertyFetcher: AdbCommandRejectedException getting properties for device 3004a4ebc1303100: device offline
PropertyFetcher: AdbCommandRejectedException getting properties for device 3004a4ebc1303100: device unauthorized.
This adbd's $ADB_VENDOR_KEYS is not set; try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device.

您是否在 DDMS 透视图中检查过您的设备在线显示? 尝试从 DDMS

重置 adb