Android 无法将 Eclipse 中的 ADT 插件更新到 23.0.0 或更高版本

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

Can't update ADT plugin in Eclipse to version 23.0.0 or above

androideclipseadteclipse-adt

提问by adamhala007

I am beginner in Android programming. My problem is, that I can not update ADT. The problem started, when after a long time I have updated in Android SDK Manager the Android SDK Tools. Then I was trying to import a project into the workspace. But I couldn't import that, because every time I clicked the Finish button, nothing happened. Then I closed Eclipse and opened it again, and showed me the following error:

我是 Android 编程的初学者。我的问题是,我无法更新 ADT。问题开始了,很长一段时间后,我在 Android SDK 管理器中更新了 Android SDK 工具。然后我试图将一个项目导入工作区。但我无法导入它,因为每次我单击“完成”按钮时,什么也没有发生。然后我关闭Eclipse并再次打开它,并显示以下错误:

enter image description here

在此处输入图片说明

I clicked on the Check for Updates, but it didn't find anything. On the Internet I have found an URL, so I clicked Help-->Install New Software...--> Add--> and pasted this URL. When I clicked Next, it showed me the list of items which I wanted to install and also an error:

我点击了检查更新,但没有找到任何东西。我在网上找到了一个网址,所以我点击了帮助-->安装新软件...-->添加-->并粘贴了这个网址。当我单击下一步时,它向我显示了我想要安装的项目列表以及一个错误:

Cannot complete the install because of a conflicting dependency.
 Software being installed: Tracer for OpenGL ES 23.0.0.1245622 (com.android.ide.eclipse.gldebugger.feature.feature.group 23.0.0.1245622)
 Software currently installed: Tracer for OpenGL ES 21.0.0.v201210310015-519525 (com.android.ide.eclipse.gldebugger.feature.group 21.0.0.v201210310015-519525)
Only one of the following can be installed at once: 
Tracer for OpenGL ES 23.0.0.1245622 (com.android.ide.eclipse.gldebugger 23.0.0.1245622)
Tracer for OpenGL ES 21.0.0.v201210310015-519525 (com.android.ide.eclipse.gldebugger 21.0.0.v201210310015-519525)
Cannot satisfy dependency:
From: Tracer for OpenGL ES 23.0.0.1245622 (com.android.ide.eclipse.gldebugger.feature.feature.group 23.0.0.1245622)
To: com.android.ide.eclipse.gldebugger [23.0.0.1245622]
Cannot satisfy dependency:
From: Tracer for OpenGL ES 21.0.0.v201210310015-519525 (com.android.ide.eclipse.gldebugger.feature.group 21.0.0.v201210310015-519525)
To: com.android.ide.eclipse.gldebugger [21.0.0.v201210310015-519525]

I have also read somewhere, that I should try to replace the plugins folder with the updated plugins folder so I tried to rename "plugins" folder in the Eclipse folder to "pluginsx" and pasted the new one I have downloaded from the site. After this I couldn't open the Eclipse.

我也在某处读过,我应该尝试用更新的插件文件夹替换插件文件夹,所以我尝试将 Eclipse 文件夹中的“插件”文件夹重命名为“pluginsx”并粘贴我从站点下载的新文件夹。在此之后,我无法打开 Eclipse。

This siteis also about the same problem as I have, and there is an answer which is accepted as the solution of the question. So I tried also to download, and copy those 3 things to folders which were mentioned in the comment below, but I have still the same problem, nothing changed.

站点也与我遇到的问题大致相同,并且有一个答案被接受为问题的解决方案。所以我也尝试下载,并将这 3 个东西复制到下面评论中提到的文件夹中,但我仍然遇到同样的问题,没有任何改变。

So now I don't have any idea, how to fix this problem. Can anyone help me, please?

所以现在我不知道如何解决这个问题。任何人都可以帮助我吗?

Thanks in advance.

提前致谢。

回答by serifsadi

Help-->Install New Software-->What is already installed?

帮助-->安装新软件-->已经安装了什么?

Then, Select "Android DDMS, Andoid Devlopment Tools,Android Hierarcy Viewer, Android native Development Tools, Android Traceview, Tracer for OpenGL ES" and click Uninstall.

然后,选择“Android DDMS、Andoid Devlopment Tools、Android Hierarcy Viewer、Android native Development Tools、Android Traceview、Tracer for OpenGL ES”并点击卸载。

After all this step, try Add link (https://dl-ssl.google.com/android/eclipse/) and name is ADT Plugin. This link will get the latest ADT Plugin. In this way you reinstall the ADT.

完成这一步后,尝试添加链接(https://dl-ssl.google.com/android/eclipse/),名称为 ADT 插件。此链接将获得最新的 ADT 插件。这样您就可以重新安装 ADT。

回答by Stuart Siegler

None of these "update" alone answers worked for me.

这些单独的“更新”答案都不适合我。

The solution I used is to uninstall the ADT (from Uninstalling Android ADT)

我使用的解决方案是卸载 ADT(来自 Uninstalling Android ADT)

Help > About Eclipse > Installation Details

Select all of the Android modules (prefixed with com.android.ide...)

选择所有的 Android 模块(以 com.android.ide... 为前缀)

and delete them (Uninstall...) and re-add the libraries from the

并删除它们(卸载...)并从

help > Install new software

As listed above....

如上所述....

回答by androidevil

The only solution that worked to me was to download the current Eclipse ADT bundle from the Android site

对我有用的唯一解决方案是从 Android站点下载当前的 Eclipse ADT 包

After download it, I copied my current sdk to a folder like .../development/sdk. Then I deleted the sdk that came with this new Bundle.

下载后,我将当前的 sdk 复制到一个文件夹中,例如.../development/sdk。然后我删除了这个新捆绑包附带的 sdk。

I put ADT Bundle in .../development/adt-bundle-.... After start it, you jave to inform the new sdk location in Window > Preferences > Android, so in SDK Location you put the new sdk path. In my case: .../development/sdk.

我把 ADT Bundle 放在.../development/adt-bundle-...。启动后,你会通知新的sdk位置在Window > Preferences > Android,所以在SDK Location中你放置新的sdk路径。就我而言:.../development/sdk

Of course, you can put the sdk folder inside the new ADT Bundle folder, but I do this way, because I use Android Studio as well, so I point the two IDEs to the same SDK.

当然你也可以把sdk文件夹放到新的ADT Bundle文件夹里面,不过我是这样做的,因为我也是用Android Studio的,所以我把两个IDE都指向同一个SDK。

After finish this and be sure everything is working I deleted the old ADT Bundle folder.

完成此操作并确保一切正常后,我删除了旧的 ADT Bundle 文件夹。

回答by ZakiMak

Installing ADT is a major problem specially when updating. Also sometimes it's just a pain to install ADT by providing the direct link. Often Eclipse will stall while displaying "Calculating requirements and dependencies".

安装 ADT 是一个主要问题,特别是在更新时。此外,有时通过提供直接链接来安装 ADT 只是一种痛苦。Eclipse 通常会在显示“计算需求和依赖项”时停止。

I found it simpler at times to first uninstall all the 7 components:

我发现有时首先卸载所有 7 个组件更简单:

-Android DDMS
-Andoid Devlopment Tools
-Android Hierarcy Viewer
-Android Native Development Tools
-Android Traceview
-Tracer for OpenGL ES
-Google App Engine Tools for Android(If installed)

-Android DDMS
-Andoid Devlopment Tools
-Android Hierarcy Viewer
-Android Native Development Tools
-Android Traceview
-Tracer for OpenGL ES
-Google App Engine Tools for Android(如果已安装)

Then download the latest ZIP/Archive.

然后下载最新的 ZIP/Archive

Install the Archive from Help->Install New Software->Add->Archive
Select the downloaded ZIP, provide a name for it and follow the standard installation process.

从 Help->Install New Software->Add->Archive 安装存档
选择下载的 ZIP,为其提供名称并遵循标准安装过程。

回答by ZakiMak

I had the same issue and the following solution worked for me.

我遇到了同样的问题,以下解决方案对我有用。

I had installed SDK Platform of M Preview while my ADT was of version 22. So I just uninstalled SDK Platform of M preview and installed SDK platform of API level 22 from SDK Manager.

我已经安装了 M 预览版的 SDK 平台,而我的 ADT 是 22 版。所以我只是卸载了 M 预览版的 SDK 平台并从 SDK 管理器安装了 API 级别 22 的 SDK 平台。

This worked for me.

这对我有用。

回答by caseres

this solution works.!!!!!!!

此解决方案有效.!!!!!!!!!

Open eclipse> Help>about eclipse>Installation

打开eclipse>Help>about eclipse>Installation

uninstall the component the are included to the .zip file you downloaded. download like below.

卸载包含在您下载的 .zip 文件中的组件。下载如下。

(credit to mr.zakimark

(归功于zakimark先生

I found it simpler at times to first uninstall all the 7 components:

我发现有时首先卸载所有 7 个组件更简单:

-Android DDMS -Andoid Devlopment Tools -Android Hierarcy Viewer -Android Native Development Tools -Android Traceview -Tracer for OpenGL ES -Google App Engine Tools for Android(If installed)

-Android DDMS -Andoid Devlopment Tools -Android Hierarcy Viewer -Android Native Development Tools -Android Traceview -Tracer for OpenGL ES -Google App Engine Tools for Android(如果已安装)

Then download the latest ZIP/Archive.

然后下载最新的 ZIP/Archive

Install the Archive from Help->Install New Software->Add->Archive Select the downloaded ZIP, provide a name for it and follow the standard installation process.

从 Help->Install New Software->Add->Archive 安装存档 选择下载的 ZIP,为其提供名称并遵循标准安装过程。

回答by zelanix

I couldn't uninstall the old ADT plugins from the 'Help->Installation Details` page because the 'Uninstall...' button was disabled when I selected any of the modules.

我无法从“帮助->安装详细信息”页面卸载旧的 ADT 插件,因为当我选择任何模块时“卸载...”按钮被禁用。

Also, because the ADT bundle is no longer available to download, reinstalling was not an option.

此外,由于 ADT 包不再可供下载,重新安装不是一个选项。

What worked for me was to install the basic Eclipse environment using the Eclipse Installer from here. In the installer, I selected 'Advanced Mode...' from the hamburger menu, and then selected just the 'Eclipse Platform' to install, i.e. just the core tools. I think that this is only possible using the installer.

对我有用的是使用这里的 Eclipse 安装程序安装基本的 Eclipse 环境。在安装程序中,我从汉堡包菜单中选择了“高级模式...”,然后只选择了“Eclipse 平台”进行安装,即仅选择核心工具。我认为这只能使用安装程序。

After eclipse was installed, I installed all the ADT plugins using 'Help->Install New Software' and using link https://dl-ssl.google.com/android/eclipse/.

安装 eclipse 后,我使用“帮助->安装新软件”并使用链接https://dl-ssl.google.com/android/eclipse/安装了所有 ADT 插件。

YMMV, but this worked for me.

YMMV,但这对我有用。