Android SDK中的错误:版本

Android SDK中的错误:版本

问题描述:

我今天进行的项目,其中有没有错误,以及一种休息后,当我重新打开Eclipse中,我得到了以下错误:

I have worked today on a project, which had no errors, and after a sort break, when I re-opened eclipse, I got the following error:

我试图寻找解决的办法,但错误是长在长度上找到任何结果。
我甚至下载了新的修订17,但它并没有帮助。

I have tried searching for a solution, but the error is to long in length to find any results. I even downloaded the new 17 revision, but it didn't help.

所以让我们通过验证安装ADT的当前版本开始。以防万一:

So lets start by verifying the current version of ADT installed. Just in case:


  1. 启动Eclipse

  2. 单击帮助

  3. 单击关于Eclipse的

  4. 然后选择有Android机器人图标

在新对话框中你会看到ADT版本。如果这是不会 17则错误信息不会撒谎,即使你可能已经尝试升级到17版它显然没有。如果有,那么我建议ADT和SDK的一个完整的重新安装。您可以按照文档这里 http://developer.android.com/sdk/eclipse -adt.html#安装

In the new dialog you will see the ADT version. If this is NOT 17 then the error message does not lie and even though you may have tried to upgrade to version 17 it clearly has not. If it has then I would suggest a complete re-install of ADT and the SDK. You can follow the docs here http://developer.android.com/sdk/eclipse-adt.html#installing

一个原因,你开始拉它全部拆开更新前可能已经失败的是,你可能需要以管理员身份运行日食。我也觉得通过SDK管理器,SDK更新必须完成以管理员身份了。

One reason the update may have failed before you start pulling it all apart is that you may need to run eclipse as an administrator. I also find that SDK updates via the SDK manager have to be done as an administrator too.

在从Eclipse中去了SDK管理器中我有时会发现Eclipse已经不是管理权限启动它,即使Eclipse拥有它们。因此,更新过程将失败。我觉得最好先用管理员权限自己的SDK管理器,然后手动更新SDK,并检查错误日志中的任何问题(通常是下载的作品,但随后未能将文件复制我,如果我在管理员模式下我不是)

When going from Eclipse to the SDK Manager I sometimes find that Eclipse has not started it with admin rights even though Eclipse has them. Therefore the update process then fails. I find it best to start the SDK manager with admin rights yourself, and then update the SDK manually and check the error log for any issues (normally the download works but then fails to copy the files for me if I am not in administrator mode).

编辑/ UPDATE:

EDIT/UPDATE:

你检查在Eclipse ADT的设置,尤其是对 SDK位置设置?它是否指向你到SDK的最新副本?如果有打开SDK管理器的麻烦那么它可能是SDK试图更新后打破。我想卸载它完全然后下载一个新的副本。

Have you checked the ADT settings in Eclipse, especially the setting for SDK Location? Does it point to your up to date copy of the SDK? If it is having trouble opening the SDK manager then it could be the SDK is broken after attempting an update. I would uninstall it completely then download a fresh copy.