错误:此 Android SDK 需要 Android Developer Toolkit 版本 22.6.1 或更高版本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22524789/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error: This Android SDK requires Android Developer Toolkit version 22.6.1 or above
提问by TheLittleNaruto
I have installed adt version 22.6.1 already 2 days ago. It was working fine. Suddenly, When I open eclipse today, it keeps showing me following error:
我已经在 2 天前安装了 adt 版本 22.6.1。它工作正常。突然,当我今天打开 eclipse 时,它一直显示以下错误:
This Android SDK requires Android Developer Toolkit version 22.6.1 or above. Current version is 22.2.1.v201309180102-833290. Please update ADT to the latest version.
此 Android SDK 需要 Android Developer Toolkit 版本 22.6.1 或更高版本。当前版本为 22.2.1.v201309180102-833290。请将 ADT 更新到最新版本。
Here is screenshot of my eclipse's Android SDK Manager :
这是我的 eclipse 的 Android SDK Manager 的屏幕截图:
I tried with following steps to resolve my issue as discussed in this Link
我尝试使用以下步骤来解决此链接中讨论的问题
- Help | Install new software
- Select the ADT update site (there are two, one with
http://
and one withhttps://
. If one doesn't work, try the other. - Select the developer tools section and press next.
- You should see a dialog that says This software is already installed, an update will be performed instead. Clicking OKwill lead to 22.6.1 being installed.
- 帮助 | 安装新软件
- 选择ADT更新站点(有两个,一个有
http://
,一个有https://
。如果一个不行,试试另一个。 - 选择开发人员工具部分,然后按下一步。
- 您应该会看到一个对话框,提示此软件已安装,将执行更新。单击确定将导致安装 22.6.1。
But unfortunately it didn't work for me.
但不幸的是,它对我不起作用。
Here is a screenshot I am attaching which shows the error I am getting while updating the tools.
这是我附上的屏幕截图,显示了我在更新工具时遇到的错误。
How can I get rid of it?
我怎样才能摆脱它?
采纳答案by TheLittleNaruto
Yet, if someone is facing this issue, Then follow steps below:
但是,如果有人遇到此问题,请按照以下步骤操作:
download new stand alone SDK from android's developer site
Close eclipse if it is opened and copy new downloaded sdk in the same location where your already existing old sdk is. Must replace conflict files and keep rest.
No need to delete old sdk. Copying as in step 2 will update your Android Developer Toolkit version to 22.6.1 or above which is required and will keep already downloaded APIs.
Now start your eclipse, and the error will be gone forever. :)
从android 的开发者站点下载新的独立 SDK
如果 eclipse 已打开,请关闭它,并将新下载的 sdk 复制到现有旧 sdk 所在的位置。必须更换冲突文件并保持休息。
无需删除旧的 sdk。按照步骤 2 进行复制会将您的 Android Developer Toolkit 版本更新为 22.6.1 或更高版本,这是必需的,并将保留已下载的 API。
现在开始你的日食,错误将永远消失。:)
if someone will have trouble doing so, leave me a comment, will try to guide.
如果有人在这样做时遇到问题,请给我留言,我会尽力指导。
回答by Lalit
I have solved this issue yesterday.
我昨天已经解决了这个问题。
Follow the steps :
Help -> Install New Software -> Add -> (Give any name supposeNewUpdate
) -> add this url : https://dl-ssl.google.com/eclipse/plugin/4.2-> OK
请按照以下步骤操作:
帮助 -> 安装新软件 -> 添加 ->(假设任意名称NewUpdate
) -> 添加此 url:https: //dl-ssl.google.com/eclipse/plugin/4.2-> OK
Now it will list the available updates, which should ideally be adt 20.x.x
现在它将列出可用的更新,理想情况下应该是 adt 20.xx
Select the list items Let it be installed. Eclipse will restart and Its done.
选择列表项让它被安装。Eclipse 将重新启动并完成。
I hope this will helpful for you :)
我希望这对你有帮助:)
回答by Exodus
I managed to resolve it by doing the following:
我设法通过执行以下操作来解决它:
- Downloaded latest ADT (Win x64)
- Deleted my old ADT install (It got bugged when I simply tried to overwrite the existing files) - see this google issue
- Copied the zip file to C:\ (since it was complaining about too long filenames while unpacking)
- Unpacked to my ADT install folder.
- Ran updates and SDK manager updates.
- 下载最新的 ADT (Win x64)
- 删除了我旧的 ADT 安装(当我只是尝试覆盖现有文件时它被窃听了) - 请参阅此谷歌问题
- 将 zip 文件复制到 C:\ (因为它在解包时抱怨文件名太长)
- 解压到我的 ADT 安装文件夹。
- Ran 更新和 SDK 管理器更新。
Now it's working, but I lost my pretty Eclipse theme. Oh, and the target adtis not being resolved, a problem for another topic.
现在它可以工作了,但是我丢失了漂亮的 Eclipse 主题。哦,目标 adt没有解决,另一个主题的问题。
回答by Pankaj Arora
Just delete the existing ADT and install new version of ADT.generally this problems occurs when you update SDK using below link.
只需删除现有的 ADT 并安装新版本的 ADT。通常当您使用以下链接更新 SDK 时会出现此问题。
https://dl-ssl.google.com/android/eclipse/
回答by blue
The ADT Bundle on developer.android.com seems to me as out of date.
developer.android.com 上的 ADT Bundle 在我看来已经过时了。
I fixed the same problem by downloading eclipse(Java EE was my choice, but you can choose your flavor) and Installing the Eclipse Plugin
我通过下载 Eclipse(Java EE 是我的选择,但您可以选择您的风格)并安装 Eclipse 插件来解决同样的问题
回答by IRvanFauziE
this steps solve my problem:
这一步解决了我的问题:
- go to Help-> Install New Software.
- in the bottom box, click What is already installed?text.
then you will see Eclipse Installation Detailsbox, please Uninstallall conflicts software, in my case I uninstall the following software:
- Android DDMS
- Android Development Tools
- Android Hierarchy Viewer
- Android Native Development
- Android Traceview
- Tracer for OpenGL ES
when uninstall complete, please restart your Eclipse.
after your Eclipse open, please follow again these steps:
- go to Help-> Install New Software.
- in Work withbox, select or add {ADT Plugin - https://dl-ssl.google.com/android/eclipse}.
- then check all available software.
- click Next >to install newest software.
- 转到帮助->安装新软件。
- 在底部框中,单击什么已经安装?文本。
然后您将看到Eclipse 安装详细信息框,请卸载所有冲突软件,在我的情况下,我卸载以下软件:
- 安卓系统
- 安卓开发工具
- Android 层次结构查看器
- 安卓原生开发
- 安卓跟踪视图
- OpenGL ES 跟踪器
卸载完成后,请重新启动 Eclipse。
打开 Eclipse 后,请再次执行以下步骤:
- 转到帮助->安装新软件。
- 在“使用”框中,选择或添加 {ADT 插件 - https://dl-ssl.google.com/android/eclipse}。
- 然后检查所有可用的软件。
- 单击下一步 >安装最新软件。
I hope this helps you :)
我希望这可以帮助你 :)
回答by Hamid
For those who tried everything but didn't get any positive result. I did the following and it worked:
对于那些尝试了一切但没有得到任何积极结果的人。我做了以下事情,它奏效了:
Uninstall the ADT by helping from following link: Uninstalling Android ADT
通过以下链接的帮助卸载 ADT: 卸载 Android ADT
Now you can follow the install new software to add ADT to your eclipse. This way you won't get any conflict since you uninstalled old version.
现在您可以按照安装新软件将 ADT 添加到您的 Eclipse 中。这样你就不会因为卸载旧版本而发生任何冲突。
回答by Faruk Toptas
I use OSX and facing the problem for 2 days. I solved the problem by following the steps below:
我使用 OSX 并面临这个问题 2 天。我按照以下步骤解决了这个问题:
-Download ADT Bundle from https://developer.android.com/sdk/index.html-Help -> Install New Software -Write https://dl-ssl.google.com/android/eclipse/then install Developer tools -Restart eclipse and raised the error below:
-从https://developer.android.com/sdk/index.html下载 ADT Bundle -Help -> 安装新软件 -Write https://dl-ssl.google.com/android/eclipse/然后安装开发者工具 -重新启动 eclipse 并引发以下错误:
Android SDK content Loader has encountered a problem.parseSdkContent failed
java.lang.NullPointeException
-Delete .android folder under user profile. Restart eclipse
- 删除用户配置文件下的 .android 文件夹。重启日食
No errors and 22.6.1 is installed.
没有错误并且安装了 22.6.1。
回答by Ahmer
Today me and one of my friends faced the same problem, so I have tried many things like restarting eclipse, checking updates, etc. but none was working for me.
今天我和我的一个朋友遇到了同样的问题,所以我尝试了很多东西,比如重新启动 eclipse、检查更新等,但没有一个对我有用。
Then I found a solution from Hereand it's working as a charm for me and also for my friend.
然后我从这里找到了一个解决方案,它对我和我的朋友来说都是一种魅力。
Follow the steps here:
请按照此处的步骤操作:
- Start Eclipse, then select Help > Install New Software.
- Click Add, in the top-right corner.
- In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
- 启动 Eclipse,然后选择帮助 > 安装新软件。
- 单击右上角的添加。
- 在出现的添加存储库对话框中,为名称输入“ADT 插件”,为位置输入以下 URL:
https://dl-ssl.google.com/android/eclipse/
https://dl-ssl.google.com/android/eclipse/
- Click OK.
- 单击确定。
If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
如果您在获取插件时遇到问题,请尝试在位置 URL 中使用“http”,而不是“https”(出于安全原因,首选 https)。
- In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
- In the next window, you'll see a list of the tools to be downloaded. Click Next. Read and accept the license agreements, then click Finish.
- If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
- When the installation completes, restart Eclipse.
- 在“可用软件”对话框中,选中“开发人员工具”旁边的复选框,然后单击“下一步”。
- 在下一个窗口中,您将看到要下载的工具列表。点击下一步。阅读并接受许可协议,然后单击完成。
- 如果您收到安全警告,提示无法确定软件的真实性或有效性,请单击“确定”。
- 安装完成后,重新启动 Eclipse。
回答by eyal
The "Install new Software" under help in Eclipse will NOT workbecause it conflicts with ver#22. I just downloaded the new Eclipse bundle from: Get the Android SDK - google site, extracted it in a new folder ant it is done.
Eclipse 帮助下的“安装新软件”将不起作用,因为它与 ver#22 冲突。我刚刚从以下位置下载了新的 Eclipse 包: Get the Android SDK - google site,将它解压到一个新文件夹 ant 中,就完成了。
It is working smoothly, no problems.
它工作顺利,没有问题。
Few tips to save you time:
一些节省时间的技巧:
- Backup your workspace (just in case) - personally didn't use this back.
- Once you open the new eclipse.exe it will ask you to select a workspace - just brows to your ols workspace and it will import all your projects (no problems).
- In order to save time of download and install of the SDK again, I Cut & Paste the OLDSDK library from the previous bundle directory to the new one (Close your new Eclipse first).
- When you re-open Eclipse, you may receive an error message saying that Eclipse can't find the SDK directory. It will ask you to open "Preferences". Once open, browse to the new SDK directory (the one that you just copied). Doing this will save you hours of re-installing all the SDK updates that you did on the previous Eclipse.
- 备份您的工作区(以防万一) - 个人没有使用它。
- 打开新的 eclipse.exe 后,它会要求您选择一个工作区 - 只需浏览到您的 ols 工作区,它就会导入您的所有项目(没问题)。
- 为了节省再次下载和安装 SDK 的时间,我将旧SDK 库从以前的包目录剪切并粘贴到新的(先关闭新的 Eclipse)。
- 当您重新打开 Eclipse 时,您可能会收到一条错误消息,指出 Eclipse 找不到 SDK 目录。它会要求您打开“首选项”。打开后,浏览到新的 SDK 目录(您刚刚复制的目录)。这样做将节省您重新安装您在以前的 Eclipse 上所做的所有 SDK 更新的时间。
Have fun, it is really not a big deal.
玩得开心,真的没什么大不了的。