android - Nexus 5 (Kitkat 4.4) 不会授权我的 Windows 8 计算机

标签 android eclipse windows-8 adb android-4.4-kitkat

我正在尝试使用 Eclipse 和我的 Nexus 5 为 Android 开发一些应用程序。

但是,在第一次从 Eclipse 加载 MyFirstApp 后,我似乎无法获得正确的授权。

当我从命令提示符运行 adb devices 时,我最终得到了

0350b965215d9854               unauthorized

0350b965215d9854               offline

即使在重新启动一切之后,我也只是偶尔在手机上看到授权弹出窗口。即使我选中“始终允许从这台计算机”复选框(下图),我的计算机仍未授权。我从来没有记得像复选框建议的那样授权我的计算机。

几次,在多次杀掉服务器并重启服务器后,adb会识别出设备,因为在输入“adb devices”后,我得到了

0350b965215d9854            device

但是如果我尝试在 eclipse 中运行该应用程序,我将收到以下错误消息。

[2013-11-09 18:10:16 - MyFirstApp] Failed to install MyFirstApp.apk on device '0350b965215d9854': timeout
[2013-11-09 18:10:16 - MyFirstApp] Launch canceled!

我也无法从 adb 运行 shell 或其他命令。

我已经确认我使用的是最新的 USB 驱动程序、android sdk 和 eclipse 版本,并尝试了以下修复:

在 Nexus 5 上:

  • 以安全模式启动

    切换/取消切换 USB 调试

    撤销USB调试授权并重新授权

    重启手机

    一次性允许权限

在 Windows 8 上:

  • 重启电脑

    重新启动 Eclipse

    从 cmd 中终止/启动 adb

    从任务管理器中杀死 adb

    重新安装 Eclipse

    重新安装谷歌的 USB 驱动程序

    按照 this question 在谷歌的驱动程序中安装 nexus 5 行

    重新安装 Android SDK

    更改 USB 端口

我看过关于 Nexus 4 的非常相似的帖子和 Nexus 7 ,但在尝试了这些解决方案中包含的所有内容之后,我仍然一无所获。

最佳答案

Here's my solution
1. I re-download the latest ADT bundle
2. uninstall the old driver in "My Computer" -> "Device Manager" (delete the old driver also)
3. Right click on "Nexus 5" and update the driver using the one under "[New ADT Path]/sdk/extra/google/usb_driver"
4. Turn on debug mode (click on KRT16M multi-times)
5. Deploy my first app . And a popup on device appears. Click "Yes" to accept the key.

Good luck!

关于android - Nexus 5 (Kitkat 4.4) 不会授权我的 Windows 8 计算机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19886456/

相关文章:

java - Android、Eclipse : Item in . xml 布局未在图形布局中显示

eclipse - Eclipse 的 CVS 服务器配置

windows-8 - 使用 Visual Studio 2010 在 Windows 7 上构建 Windows 8 Metro 应用程序

python - 在 Python 中验证 Windows 8 应用内购买收据签名

eclipse - Indigo Maven 项目生成器

c# - 我可以在 Metro ui javascript 代码中使用用 C# 创建的对象吗?

java - 我该如何处理这个错误使其正确 ?"invalid method declaration; return type required"

android - 如何在 Windows 中手动设置 ANDROID_SDK_ROOT

Java.lang.verifyerror 如何修复甚至找出根本原因?

java - Eclipse RCP 4 : Adding a Popup Menu to an MPart