eclipse 由于依赖冲突而无法完成安装

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

Cannot complete the install because of a conflicting dependency

eclipse

提问by Mahmoud Saleh

I am using eclipse helios (IDE for Java EE developers) 64 bit latest version

我正在使用 eclipse helios(Java EE 开发人员的 IDE)64 位最新版本

and when I am trying to update it from help>check for updates

当我尝试从 help>check for updates

I am getting the error:

我收到错误:

Cannot complete the install because of a conflicting dependency
Cannot complete the install because of a conflicting dependency

Why I am getting this error, and how can I solve it?

为什么我会收到此错误,我该如何解决?

采纳答案by TK Gospodinov

You are getting this because there is a conflicting dependency somewhere. For example, if you have plugin A that depends on dependency.X-1.0.0 installed, and try to install plugin B that depends on dependency.X-1.1.0, there is a conflict. When you check for updates, Eclipse will check all plugins and features you have installed in the past. Try to update one thing at a time to identify which update has a conflicting dependency.

你之所以得到这个,是因为某处存在相互冲突的依赖关系。例如,如果您安装了依赖于dependency.X-1.0.0的插件A,并尝试安装依赖于dependency.X-1.1.0的插件B,则存在冲突。当您检查更新时,Eclipse 将检查您过去安装的所有插件和功能。尝试一次更新一件事,以确定哪个更新具有冲突的依赖关系。

Hope this helps!

希望这可以帮助!

回答by Stefano

sorry to say that i think i saw somethink in the bug report of eclipse. give a look here

抱歉,我想我在 eclipse 的错误报告中看到了一些想法。看看这里

http://marketplace.eclipse.org/content/error/report/36380

http://marketplace.eclipse.org/content/error/report/36380

and here:

和这里:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=339659

https://bugs.eclipse.org/bugs/show_bug.cgi?id=339659

回答by michel.iamit

I couldnt get things working in the 'normal' update screen, but when going to 'About eclipse platform' screen and push the 'installation details' button. I got another screen, where you can select an installed plugin and update it.... in there it worked.

我无法在“正常”更新屏幕中正常工作,但是当转到“关于 eclipse 平台”屏幕并按下“安装详细信息”按钮时。我有另一个屏幕,您可以在其中选择一个已安装的插件并更新它......在那里它起作用了。

In there I first selected the plugin that seemed to be causing the conflict, and update it. Then the other one conflicting with this one... (the conflict in my case was between the android sdk and my java development tools)

在那里,我首先选择了似乎导致冲突的插件,然后对其进行了更新。然后另一个与这个冲突......(在我的例子中冲突是在android sdk和我的java开发工具之间)

Don't ask me why and what's the difference.... this option might be of help to others...

不要问我为什么和有什么区别......这个选项可能对其他人有帮助......

回答by Jeremy C

If running on Windows 7, these errors can often be resolved by running Eclipse as Administrator, then update. https://bugs.eclipse.org/bugs/show_bug.cgi?id=339659

如果在 Windows 7 上运行,这些错误通常可以通过以管理员身份运行 Eclipse 来解决,然后更新。https://bugs.eclipse.org/bugs/show_bug.cgi?id=339659

回答by mayank_droid

I Could resolve it by checking already installed plugins at where it was giving me this error. I just uninstalled all the plugins which had conflicting dependency and try to install the updates. It worked well.! check the marked area in this linked image

我可以通过在它给我这个错误的地方检查已经安装的插件来解决它。我刚刚卸载了所有具有冲突依赖性的插件并尝试安装更新。它工作得很好。! 检查此链接图像中的标记区域

Generally, why it should happen is that while updating plugins lately,they have evolved 2-3 updates and during which plugins have introduced some new functions that have to be installed and also are to be updated. This thing creates conflicts of dependency. Eclipse tries to update which is not already existing/installed and it also tells install it first which creates conflicts.

一般来说,为什么会发生这种情况是因为最近更新插件的同时,它们已经进化了2-3次更新,并且在此期间插件引入了一些必须安装和更新的新功能。这件事造成了依赖冲突。Eclipse 会尝试更新尚未存在/已安装的内容,并且它还会告诉首先安装它,这会产生冲突。

So, when you uninstall the plugins, now it installs the latest plugins rather then updating. it means you updating eclipse plugins manually(by uninstalling older and installing latest). This may happen if you have skipped 2-3 updates and now looking for latest update.

因此,当您卸载插件时,它会安装最新的插件而不是更新。这意味着您手动更新 eclipse 插件(通过卸载旧版本并安装最新版本)。如果您跳过了 2-3 个更新,现在正在寻找最新的更新,则可能会发生这种情况。

回答by pranavjayadev

I solved this problem by downloading the latest ADT release from following urls

我通过从以下网址下载最新的 ADT 版本解决了这个问题

  1. linux 64 bit vm:
    http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip

  2. linux 32 bit vm:
    http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip

  3. mac:
    http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip

  4. win32:
    http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip

  5. win64:
    http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip

  1. linux 64 位虚拟机:http:
    //dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip

  2. linux 32 位虚拟机:http:
    //dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip

  3. mac:http:
    //dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip

  4. win32:http:
    //dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip

  5. win64:http:
    //dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip

After opening eclipse IDE go to Help->Install New Software->Add

打开 eclipse IDE 后转到Help-> Install New Software-> Add

Name = ADT plugin , location = linkand select all Developer Tools. After installation completed please restart your ide and all the bugs get solved now.

名称 = ADT 插件,位置 =链接并选择所有开发人员工具。安装完成后,请重新启动您的ide,现在所有错误都得到解决。

回答by Ian M

I resolved this issue by running eclipse as root, and then installing the updates from Help>Install New Software and adding the latest update version to the download list (http://download.eclipse.org/eclipse/updates/4.4). Not sure if this is the best way, but it worked to go from Indigo (3.8) to Luna (4.4). I'm doing this on Ubuntu 14.04 x64

我通过以 root 身份运行 eclipse 解决了这个问题,然后从 Help>Install New Software 安装更新并将最新的更新版本添加到下载列表 ( http://download.eclipse.org/eclipse/updates/4.4)。不确定这是否是最好的方法,但从 Indigo (3.8) 到 Luna (4.4) 是有效的。我在 Ubuntu 14.04 x64 上做这个

回答by Anonymours

I agree with Michel.iamit. I tried all other options of updating the ADT and it did not work. With Michel's solution, my environment did not work and it complained about the conflict.

我同意 Michel.iamit。我尝试了更新 ADT 的所有其他选项,但没有奏效。使用 Michel 的解决方案,我的环境不起作用,它抱怨冲突。

So here is what I did and got it to work:

所以这就是我所做的并让它工作:

  • First uninstall all ADP Plugins.
  • Then check for updates and it will prompt you regarding the missing plugins.
  • Select all, accept all licences and proceeed.
  • 首先卸载所有 ADP 插件。
  • 然后检查更新,它会提示您有关缺少的插件。
  • 全选,接受所有许可并继续。

Hope this helps someone.

希望这可以帮助某人。