此 Android SDK 需要 Android Developer Toolkit 23.0.0 或更高版本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24525595/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:21:37  来源:igfitidea点击:

This Android SDK requires Android Developer Toolkit version 23.0.0 or above

androideclipseadt

提问by Kalpesh

I get the following error when I start my Eclipse.

启动 Eclipse 时出现以下错误。

enter image description here

在此处输入图片说明

And when I try to update from Help > Install New Software... using the eclipse update link https://dl-ssl.google.com/eclipse/plugin/4.2

当我尝试从 Help > Install New Software... 使用 eclipse 更新链接https://dl-ssl.google.com/eclipse/plugin/4.2 进行更新时

It gives me following error:

它给了我以下错误:

Cannot complete the install because of a conflicting dependency.
Software being installed: Android Development Tools 23.0.1.1256982 (com.android.ide.eclipse.adt.feature.feature.group 23.0.1.1256982)
Software currently installed: Android Development Tools 22.6.3.v201404151837-1123206 (com.android.ide.eclipse.adt.feature.group 22.6.3.v201404151837-1123206)
Only one of the following can be installed at once: 
ADT XML Overlay 23.0.1.1256982 (overlay.com.android.ide.eclipse.adt.overlay 23.0.1.1256982)
ADT XML Overlay 22.6.3.v201404151837-1123206 (overlay.com.android.ide.eclipse.adt.overlay 22.6.3.v201404151837-1123206)
Cannot satisfy dependency:
From: Android Development Tools 23.0.1.1256982 (com.android.ide.eclipse.adt.feature.feature.group 23.0.1.1256982)
To: overlay.com.android.ide.eclipse.adt.overlay [23.0.1.1256982]
Cannot satisfy dependency:
From: Android Development Tools 22.6.3.v201404151837-1123206 (com.android.ide.eclipse.adt.feature.group 22.6.3.v201404151837-1123206)
To: overlay.com.android.ide.eclipse.adt.overlay [22.6.3.v201404151837-1123206]

What should I do now?

我现在该怎么办?

采纳答案by Kalpesh

The best solution to this is to download a new ADT from http://developer.android.com/sdk/index.html

最好的解决方案是从http://developer.android.com/sdk/index.html下载一个新的 ADT

回答by Kikiwa

If you have a conflict with the previous version:

如果与之前的版本有冲突:

  1. Select Help > Install New Software
  2. Click on already installed
  3. Select all Android software on version 22.*
  4. Click on Uninstall
  5. Work with: https://dl-ssl.google.com/android/eclipse/
  6. Select Developer Tools and Next
  7. Next, Accept the license agreement and Finish.
  1. 选择帮助 > 安装新软件
  2. 点击已经安装
  3. 选择版本 22.* 上的所有 Android 软件
  4. 点击卸载
  5. 使用:https: //dl-ssl.google.com/android/eclipse/
  6. 选择开发者工具和下一步
  7. 接下来,接受许可协议并完成。


EDIT : This trick is probably no more necessary!

编辑:这个技巧可能不再需要了!

Try to upgrade your SDK tools to 23.0.2+ and build&platform tools to rev 20 before.

尝试将您的 SDK 工具升级到 23.0.2+,并将构建和平台工具升级到 rev 20。

回答by Quan Nguyen

  1. Go to Help - About Eclipse and click Installation Details
  2. On tab Installed Software, select all row that has version 22.6.3 then click Uninstall
  3. Go to Help - Install new software, select work with ADT Plugin - http://dl-ssl.google.com/android/eclipse/
  4. Check the Developer Tools and now install without conflict
  1. 转到帮助 - 关于 Eclipse 并单击安装详细信息
  2. 在选项卡已安装的软件上,选择所有版本为 22.6.3 的行,然后单击卸载
  3. 转到帮助 - 安装新软件,选择使用 ADT 插件 - http://dl-ssl.google.com/android/eclipse/
  4. 检查开发人员工具,现在安装没有冲突

回答by user285oo6

AS you have done the upgrade to SDK 23.0 without upgrading the ADT it will show this kind error as you have mentioned in the screen shot.

当您在没有升级 ADT 的情况下完成了 SDK 23.0 的升级时,它将显示您在屏幕截图中提到的此类错误。

Simply upgrading the SDK to 23.0 is of no use until and unless you also update the related development tool in ADT.

除非您还更新 ADT 中的相关开发工具,否则简单地将 SDK 升级到 23.0 是没有用的。

Follow the steps

按照步骤

  1. First delete the SDK 23.0 and update the ADT to 23.0
  2. For doing the update you need to click on Install new software from help and choose the ADT/https://dl-ssl.google.com/android/eclipse/under the link upon which you get the new Development tools to update click all >next to continue .
  3. Upon successful completion you can now update the SDK to 23.0.
  1. 先删除SDK 23.0,更新ADT到23.0
  2. 要进行更新,您需要单击从帮助中安装新软件,然后在 获得新开发工具更新的链接下选择 ADT/ https://dl-ssl.google.com/android/eclipse/单击全部>下一步继续。
  3. 成功完成后,您现在可以将 SDK 更新到 23.0。

Note:-Many of those who tried to update the SDK have face a problem Cannot complete the installation because of conflict dependancy Cannot complete the installation because of conflict dependancy

注意:-许多尝试更新 SDK 的人都遇到了由于依赖冲突而无法完成安装的问题 由于冲突依赖,无法完成安装

So its better to just stick to the 22.6v of the ADT. The update to 23.0 is filled with bugs and it will take some time to fix the bugs

所以最好坚持 ADT 的 22.6v。23.0的更新充满了bug,需要一些时间来修复这些bug

回答by nyx

I also got the error of OP this morning. I clicked on "Check for Updates" but it was always saying "No updates available".

我今天早上也收到了OP的错误。我点击了“检查更新”,但总是说“没有可用的更新”。

I found this thread and thought "Oh man, I'm gonna sit on this all day".

我找到了这个帖子并想“哦,伙计,我要坐一整天”。

But lucky for me (and for you who will find this thread perhaps in a few weeks), the solution is getting easier. I just did this:

但对我来说很幸运(对于你可能会在几周内找到这个线程),解决方案变得越来越容易。我只是这样做:

  1. Help > Install New Software
  2. choose the update site https://dl-ssl.google.com/android/eclipse/
  3. it offered me the new ADT-Packages with version 23.0.3 and I chose all of them
  4. it showed me the known conflicting-dependency-error BUT offered me directly a solution: It will deinstall the 22* ADT-packages for me. I just clicked "ok" and it automatically deinstalled the old packages and installed the new ones :)
  1. 帮助 > 安装新软件
  2. 选择更新站点https://dl-ssl.google.com/android/eclipse/
  3. 它为我提供了版本为 23.0.3 的新 ADT 包,我选择了所有这些包
  4. 它向我展示了已知的冲突依赖错误,但直接为我提供了一个解决方案:它将为我卸载 22 个 ADT 包。我只是单击“确定”,它会自动卸载旧软件包并安装新软件包:)

回答by Dhaval Parmar

no need to do any thing,

不需要做任何事情,

just download new eclipse, install ADT 23.0.0 from below link

只需下载新的eclipse,从下面的链接安装ADT 23.0.0

https://dl-ssl.google.com/android/eclipse/

your problem solve...

你的问题解决了...

its happened because you have SDK 23.0.1 and ADT 23.0.1 update not available....

发生这种情况是因为您的 SDK 23.0.1 和 ADT 23.0.1 更新不可用....

yesterday i have same issue, i have solved that..

昨天我也有同样的问题,我已经解决了..

回答by marson

You are not alone.

你不是一个人。

This thing happened also to me. I tried many many solutions suggested on the internet but I had to use the "PLAN B"

这件事也发生在我身上。我尝试了互联网上提出的许多解决方案,但我不得不使用“PLAN B”

I downloadedand installed new adt bundle and reimported all my projects and libraries. It takes some time but it is not that long:)

下载并安装了新的 adt 包并重新导入了我的所有项目和库。这需要一些时间,但不会那么长:)

I hope that google will come up with fix, because the update to 23.0.0.2 also didnt work for me (same error).

我希望谷歌能提出修复,因为更新到 23.0.0.2 对我也不起作用(同样的错误)。

So keep smiling and install new ADT :)

所以保持微笑并安装新的 ADT :)

回答by Janaka Bandara

On Linux (Ubuntu), I managed to solve the problem in a bit of a 'hackish' way. It may be useful if you're reluctant to download stuff all over again (like me) :)

在 Linux (Ubuntu) 上,我设法以一种“hackish”的方式解决了这个问题。如果您不愿意重新下载东西(像我一样),它可能会很有用:)

Warning:I suspect this won't work if the ADT and SDK versions are too far apart. (For me, it worked for ADT 22.6.2 and Android SDK update 24.)

警告:如果 ADT 和 SDK 版本相距太远,我怀疑这将不起作用。(对我来说,它适用于 ADT 22.6.2 和 Android SDK 更新 24。)

  1. Modify the file $SDK_HOME/tools/lib/plugin.prop($SDK_HOME= base directory of your Android SDK installation), to contain the current ADT version, instead of the actual (updated) SDK version. In my case the original content of the file was

    plugin.version=23.0.0

    which I changed as

    plugin.version=22.6.2

  1. 修改文件$SDK_HOME/tools/lib/plugin.prop$SDK_HOME= Android SDK 安装的基目录),以包含当前的 ADT 版本,而不是实际(更新的)SDK 版本。在我的情况下,文件的原始内容是

    plugin.version=23.0.0

    我改变为

    plugin.version=22.6.2

This suppresses the "Please update ADT..." issue, but ADT won't work properly as it won't be able to identify some of the components relocated by newer SDK updates.

这会抑制“请更新 ADT...”问题,但 ADT 将无法正常工作,因为它无法识别由较新的 SDK 更新重新定位的某些组件。

  1. Create shortcuts (symlinks) or copies of missing SDK components, at the locations where ADT expects to see them. You can find the expected locations using ADT's error consoles.

    For example, in my case, the DDMS console showed an error

    [2016-02-27 19:33:33 - DDMS] DDMS files not found: /usr/lib/sdk/tools/hprof-conv

    as soon as I tried to switch to the DDMS perspective. So I just created a symlink $SDK_HOME/tools/hprof-convpointing to $SDK_HOME/platform-tools/hprof-conv(which has been relocated):

    me@computer:$SDK_HOME/tools$ln -s ../platform-tools/hprof-conv hprof-conv

  1. 在 ADT 希望看到它们的位置创建快捷方式(符号链接)或缺失 SDK 组件的副本。您可以使用 ADT 的错误控制台找到预期的位置。

    例如,就我而言,DDMS 控制台显示错误

    [2016-02-27 19:33:33 - DDMS] DDMS files not found: /usr/lib/sdk/tools/hprof-conv

    一旦我尝试切换到 DDMS 视角。所以我刚刚创建了一个$SDK_HOME/tools/hprof-conv指向$SDK_HOME/platform-tools/hprof-conv(已重新定位)的符号链接:

    me@computer:$SDK_HOME/tools$ln -s ../platform-tools/hprof-conv hprof-conv

For me, after these 2 steps, ADT started working without any problems/errors.

对我来说,在这两个步骤之后,ADT 开始工作,没有任何问题/错误。

回答by Summved Jain

I have also come across this issue and figure out few steps that will help in a way or other.

我也遇到了这个问题,并找出了一些可以在某种程度上有所帮助的步骤。

One thing to note that the error "This Android SDK requires Android Developer Toolkit version 23.0.0 or above" will only come if you have updated your Android SDK Tool and Android SDK Platform Tool before updating your ADT.

需要注意的一件事是,只有在更新 ADT 之前更新了 Android SDK 工具和 Android SDK 平台工具,才会出现错误“This Android SDK requires Android Developer Toolkit version 23.0.0 or above”。

Here are the steps that will help you to get rid of this: -

以下是帮助您摆脱这种情况的步骤: -

  1. You can try the steps provided by Kikiwa but that might create some issues like removing your android SDK. So the solution is to re-configure your eclipse with re-installing the Android SDK.

  2. Steps given by user285oo6 will also create some issues like when you delete the Updated SDK 23.0 then it will also remove the files from Platform-tools and tools folder from SDK directory. Now your eclipse wont start as it wont find the necessary files that are required to identify Android SDK or it may throw and error says "cannot find tools for the SDK" or "cannot find the version of ADT" or "emulator.exe not found".

  1. 您可以尝试 Kikiwa 提供的步骤,但这可能会产生一些问题,例如删除您的 android SDK。因此,解决方案是通过重新安装 Android SDK 来重新配置您的 Eclipse。

  2. user285oo6 给出的步骤也会产生一些问题,例如当您删除更新的 SDK 23.0 时,它还会从 SDK 目录中的 Platform-tools 和 tools 文件夹中删除文件。现在您的 Eclipse 无法启动,因为它找不到识别 Android SDK 所需的必要文件,或者它可能会抛出错误并显示“找不到 SDK 的工具”或“找不到 ADT 的版本”或“找不到 emulator.exe” ”。

In this case the solution is to restore your SDK Manager files along with Platform-tools and tools folder. Now the question arises how you will get it? Below are links for the same

在这种情况下,解决方案是恢复您的 SDK Manager 文件以及 Platform-tools 和 tools 文件夹。现在问题来了,你将如何得到它?下面是相同的链接

http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz

http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz

http://dl.google.com/android/android-sdk_r22.6.2-windows.zip

http://dl.google.com/android/android-sdk_r22.6.2-windows.zip

http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip

http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip

This will download the SDK platform ZIP files and it contains the SDK manager along with tools folder. My Suggestion is to extract them and replace the -tools folder -SDK Manager.exe -AVD Manager.exe in your android SDK directory.

这将下载 SDK 平台 ZIP 文件,它包含 SDK 管理器和工具文件夹。我的建议是提取它们并替换您的 android SDK 目录中的 -tools 文件夹 -SDK Manager.exe -AVD Manager.exe。

Now you have latest ADT installed (if you have follow the user285oo6 steps. If not then install it using your eclipse with URL https://dl-ssl.google.com/android/eclipse/) i.e. version 23.x.x and SDK on the older version.

现在您已经安装了最新的 ADT(如果您遵循 user285oo6 步骤。如果没有,则使用带有 URL https://dl-ssl.google.com/android/eclipse/的 eclipse 安装它)即版本 23.xx 和 SDK旧版本。

Now you have to restart your eclipse and update the Android SDK tool and SDK Platform tool. This will work. I have done it for windows OS and was able to get it up and running

现在您必须重新启动 eclipse 并更新 Android SDK 工具和 SDK 平台工具。这将起作用。我已经为 Windows 操作系统完成了它并且能够启动并运行它

I know I am bit late but its always good to be late then never.

我知道我迟到了,但迟到总是好的。

Please let me know if anyone has any question or confusion with the steps

如果有人对步骤有任何疑问或困惑,请告诉我

回答by Joff

@Kalpesh DON'T delete SDK 23.0 it will remove your "tools" folder and you won't be able to run SDK Manager after that. I know because I have just done that. Bad suggestion!

@Kalpesh 不要删除 SDK 23.0,它会删除您的“工具”文件夹,之后您将无法运行 SDK Manager。我知道,因为我刚刚做到了。不好的建议!

The solution from Kikiwa worked for me.

Kikiwa 的解决方案对我有用。