将Nexus上的Android升级到4.2.2后,Eclipse会显示设备的未知目标? [英] After upgrade Android on Nexus to 4.2.2, Eclipse shows target unknown for device?

查看:85
本文介绍了将Nexus上的Android升级到4.2.2后,Eclipse会显示设备的未知目标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚将手机升级到了4.2.2,但是现在我不能再在eclipse中使用它了。





我看到它已经是一个注册的 issue 。有一些新的安全增强功能,所以应该有一个对话框(参见 here 在底部),但此对话框不显示。我在手机上没有几个帐号,这是在问题中指出的。



任何人有任何建议?



编辑:看下面接受的答案,这应该涵盖所有的情况。在我的情况下,有一些包丢失,这在Android SDK管理器中未显示。我刚刚在 Android SDK管理器中找到了软件包 - >重新加载 ...我认为这会自动发生

解决方案

您需要三件事情才能确保此更新顺利进行:


  1. 确保您的设备实际上是运行4.2.2,问题不是其他的。

  2. 您的SDK已更新为最新的工具。除了最新版本之外,$ code> adb 二进制文件不支持4.2.2安全增强功能。

  3. 您是主要帐户您的设备在多个用户帐户的情况下。

将设备连接到计算机,然后执行 adb devices (确保USB调试已启用)。你应该看到这样的东西:

  3tiu52839ry082j3 offline 

现在,您的设备上应该有一个对话框,如下所示:





检查始终允许这个电脑如果你想要的,然后点击 OK



/ p>

其他一些事情要检查:




  • 确保您的USB电缆不是破碎。有时候,较小的电缆在主电源中断开,您的设备可能会充电但没有数据连接。尝试使用不同的电缆,或尝试通过USB访问设备上的文件(如果您的电缆很好,这将会很好)

  • 确保您使用的是最新版本的 ADB 。即使我更新了我的SDK工具后,使用 adb 也无法让我的设备获得授权。我最终知道Nvidia安装的NDK和SDK工具已经更新了我的 PATH 变量,以使用 adb 那个安装,这不是最新的更新。通过在我最近更新的安装中使用 adb ,我可以让它一切正常。


I just upgraded my phone to 4.2.2, but now i cannot use it in eclipse anymore.

I tried rebooting the device, reset my debug-settings but I cannot get it to work anymore.

I saw it is already a registered issue. There are some new security enhancements, so there should be a dialog (see here at bottom) but this dialog doesn't appear. I don't have several accounts on the phone, which is pointed out in the issue..

Anyone any suggestions?

EDIT: Look at accepted answer below, this should cover all cases. In my case, there were some packages missing, which weren't shown in the Android SDK Manager. I just found the Packages -> Reload in the Android SDK Manager... And I thought this happens automatically

解决方案

You need three things in order to make sure this update goes smoothly:

  1. Make sure your device is actually running 4.2.2 and the problem is not something else
  2. Your SDK is updated to the latest tools. The adb binary in all but the latest version does not support the 4.2.2 security enhancements.
  3. You are on the main account of your device in case of multiple user accounts.

Connect your Device to your computer and execute adb devices (make sure USB debugging is enabled). You should see something like this:

3tiu52839ry082j3 offline

Right about now, there should be a dialog on your device that looks something like:

Check the Always allow from this computer box if you want and click OK.

That's about it.

Some other things to check:

  • Make sure your USB cable isn't broken. Sometimes, the smaller cables break inside the main one, and your device may charge but have no data connection. Try with a different cable, or try accessing files on the device over USB (this will go fine if your cable is fine)
  • Make sure you're using the newest version of adb. Even after I updated my SDK tools, I couldn't get my device authorized when using adb. I eventually figured out that the Nvidia install of the NDK and SDK tools had updated my PATH variable to use the adb from that install, which wasn't the latest update. By using the adb in my newly updated install, I was able to get it all working.

这篇关于将Nexus上的Android升级到4.2.2后,Eclipse会显示设备的未知目标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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