由于我重新安装了Eclipse(简单地删除并重新下载),我无法在三星Galaxy i9001(使用CyanogenMod - Android 4.4.2)上调试我的应用程序。在重新安装之前,它工作正常。
拔下/插头,取消/检查“调试已启用”,adb kill-server/adb start-server,重启电话/电脑对我不起作用。在设备上授权对话框从未出现(但我记得该对话框出现在重新安装之前)。我不知道如何强制显示这个授权对话框。没有abd_key。.android目录下的Pub文件。
当我试图读取cpu信息DDMS说:
[2014-04-15 12:47:06 - DDMS] device unauthorized. Please check the confirmation dialog on your device.
什么好主意吗?是否可以在没有确认对话框的情况下手动生成密钥?
USB连接
无线连接
我刚刚尝试了adb kill-server,它为我工作:
PS C:\Users\languoguang> adb devices
List of devices attached
MKJ0117A19000186 unauthorized
PS C:\Users\languoguang> adb shell
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服务器:
PS C:\Users\languoguang> adb kill-server
PS C:\Users\languoguang> adb start-server
* daemon not running; starting now at tcp:12345
* daemon started successfully
PS C:\Users\languoguang> adb devices
List of devices attached
MKJ0117A19000186 device