error: device unauthorized.This adb server's $ADB_VENDOR_KEYS is not set 问题的解决
程序员文章站
2024-02-10 23:53:22
...
最近拿了个新手机,cmd 命令行安装apk时候,遇到:
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>adb install C:\Users\Administrator\Desktop\release\release\GangGang_release-2.0.apk
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
adb: error: failed to get feature set: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
- waiting for device -
百度了一通,试了几篇文章,感觉有点麻烦,后来自己尝试换了了usb接口,并检查数据线是否插紧和线是否正常,重新插拔了一下,结果问题问题得到了解决! 先总结和记录了一下,下次遇到问题,多方面思考,先把可能出现问题的原因和相关关联方列出来,然后逐一排查, 最终锁定焦点,找到解决方案!