Android Eclipse - 无法完成安装,因为找不到一个或多个必需的项目 (org.apache.httpcomponents.httpclient)

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

Eclipse - Cannot complete the install because one or more required items could not be found (org.apache.httpcomponents.httpclient)

androideclipsegitapachedependencies

提问by ban-geoengineering

I am trying to install Eclipse Git Team Providerand JGitin my version of Eclipse ADTvia Help > Install New Software > "EGit - http://download.eclipse.org/egit/updates"but the installation fails with this error...

我正在尝试在我的via版本中安装Eclipse Git Team Provider和安装,但安装失败并出现此错误...JGitEclipse ADTHelp > Install New Software > "EGit - http://download.eclipse.org/egit/updates"

Cannot complete the install because one or more required items could not be found. Software being installed: Java implementation of Git - optional Http support using Apache httpclient 3.3.1.201403241930-r (org.eclipse.jgit.http.apache.feature.group 3.3.1.201403241930-r)
Missing requirement: Apache HttpComponents HttpClient OSGi bundle 4.1.3.v201209201135 (org.apache.httpcomponents.httpclient 4.1.3.v201209201135) requires 'package org.apache.commons.codec.binary 1.4.0' but it could not be found Cannot satisfy dependency: From: Java implementation of Git - optional Http support using Apache httpclient 3.3.1.201403241930-r (org.eclipse.jgit.http.apache.feature.group 3.3.1.201403241930-r) To: org.apache.httpcomponents.httpclient [4.1.3.v201209201135]

无法完成安装,因为找不到一个或多个必需的项目。正在安装的软件:Git 的 Java 实现 - 使用 Apache httpclient 3.3.1.201403241930-r (org.eclipse.jgit.http.apache.feature.group 3.3.1.201403241930-r) 的可选 Http 支持
缺少要求:Apache HttpComponents HttpClient OSGi 包 4.1 3.v201209201135 (org.apache.httpcomponents.httpclient 4.1.3.v201209201135) requires 'package org.apache.commons.codec.binary 1.4.0' but it could not be found 无法满足依赖:来自:Java implementation of Git -可选的 Http 支持使用 Apache httpclient 3.3.1.201403241930-r (org.eclipse.jgit.http.apache.feature.group 3.3.1.201403241930-r) To: org.apache.httpcomponents.httpclient [4.1.3.v201205930-r]

It's saying I need to install either org.apache.httpcomponents.httpclient 4.1.3.v201209201135or package org.apache.commons.codec.binary 1.4.0(although, I'm not clear which one is missing, or whether both are missing?)...

它说我需要安装其中一个org.apache.httpcomponents.httpclient 4.1.3.v201209201135package org.apache.commons.codec.binary 1.4.0(虽然,我不清楚缺少哪个,或者是否都缺少?)...

How do I add it/them to Eclipse?

我如何将它/它们添加到Eclipse

I can find lots of info on how to add jars to the library of an individual project, but that's not what I need as I think (correct me if I'm wrong) that I need to add them to Eclipse via Help > Install New Software.

我可以找到很多关于如何将 jars 添加到单个项目的库的信息,但这不是我所需要的,因为我认为(如果我错了,请纠正我)我需要通过Help > Install New Software.

And I have seen lots of people post similar problems with other dependencies, but have not found an answer that explains how to add this particular software.

而且我看到很多人发布了与其他依赖项类似的问题,但没有找到解释如何添加此特定软件的答案。

I'm new to Eclipse, so any help would be much appreciated.

我是 Eclipse 的新手,所以任何帮助将不胜感激。

采纳答案by ban-geoengineering

I have found a solution to this problem, at least on my installation of Eclipse.

我已经找到了这个问题的解决方案,至少在我的 Eclipse 安装中是这样。

What I did was get the name of the missing package and googled it.

我所做的是获取丢失包的名称并用谷歌搜索。

  1. Download the package from here: http://commons.apache.org/proper/commons-codec/download_codec.cgiSelecting the package under the "Binaries" section

  2. Unzip the file and extract "commons-codec-1.9.jar"

  3. Copy this Jar file to your Eclipse installation directory "Eclipse\plugins"

  4. Rename it with the name of your missing package. (In my case "org.apache.commons.codec.binary_1.4.0.jar")

  5. Now repeat the steps to install EGit and it should work.

  1. 从这里下载包:http: //commons.apache.org/proper/commons-codec/download_codec.cgi在“二进制文件”部分下选择包

  2. 解压文件并解压“commons-codec-1.9.jar”

  3. 将此 Jar 文件复制到 Eclipse 安装目录“Eclipse\plugins”

  4. 用您丢失的包的名称重命名它。(在我的例子中是“org.apache.commons.codec.binary_1.4.0.jar”)

  5. 现在重复安装 EGit 的步骤,它应该可以工作了。

Obviously there are many things that could be different with your installation, I am using Eclipse version 4.2.0

显然,您的安装有很多不同之处,我使用的是 Eclipse 版本 4.2.0

I hope this helps.

我希望这有帮助。

回答by perevera

I'm using Eclipse SDK Version: 4.2.2 and I faced the same problem as user1617737.

我使用的是 Eclipse SDK 版本:4.2.2,我遇到了与 user1617737 相同的问题。

It's a little obscure but I dare say the missing dependency is 'package org.apache.commons.codec.binary 1.4.0'. I guess there is a problem with this JAR file in the EGit package itself.

这有点晦涩,但我敢说缺少的依赖项是“package org.apache.commons.codec.binary 1.4.0”。我猜 EGit 包本身中的这个 JAR 文件有问题。

Anyway, I was unable to find a solution, other than unmarking the following component to be installed:

无论如何,除了取消标记要安装的以下组件外,我找不到解决方案:

Java implementation of Git - optional Http support using Apache httpclient 3.3.2.201404171909-r

Git 的 Java 实现 - 使用 Apache httpclient 3.3.2.201404171909-r 的可选 Http 支持

In this way, EGit has been installed, though I don't know what features I may be missing.

这样,EGit就安装好了,虽然我不知道我可能缺少什么功能。

回答by arthur koene

I had the same problem. I deleted an older version of org.apache.commons.codec.binary from the clipse/plugins directory. And placed the required "org.apache.commons.codec.binary 1.4.0.jar". Then it worked.

我有同样的问题。我从 clipse/plugins 目录中删除了旧版本的 org.apache.commons.codec.binary。并放置所需的“org.apache.commons.codec.binary 1.4.0.jar”。然后它起作用了。

回答by Shubham Sharma

The same error i was getting ,

我遇到了同样的错误,

Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e - Maven Integration for Eclipse (includes Incubating components) 1.8.1.20170728-1531 (org.eclipse.m2e.feature.feature.group 1.8.1.20170728-1531)
  Missing requirement: Maven Integration for Eclipse 1.8.1.20170728-1531 (org.eclipse.m2e.core 1.8.1.20170728-1531) requires 'bundle org.eclipse.osgi 3.10.0' but it could not be found
  Cannot satisfy dependency:
    From: Maven Integration for Eclipse 1.8.1.20170728-1531 (org.eclipse.m2e.core.ui 1.8.1.20170728-1531)
    To: bundle org.eclipse.m2e.core [1.8.1,1.9.0)
  Cannot satisfy dependency:
    From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.8.1.20170728-1531 (org.eclipse.m2e.feature.feature.group 1.8.1.20170728-1531)
    To: org.eclipse.m2e.core.ui [1.8.1.20170728-1531]

i had putted my solution here . It should solve your issue Install maven in eclipse 3.8 in Ubuntu

我把我的解决方案放在这里。它应该可以解决您的问题在 Ubuntu 中的 Eclipse 3.8 中安装 maven

回答by Grzegorz Bielański

I have the same problem with Eclipse Indigo Version: 3.7.2. I tried to install older versions of EGit but still I had other problems. Finally EGit version 1.3was installed with success.

我有同样的问题Eclipse Indigo Version: 3.7.2。我尝试安装旧版本的 EGit,但仍然遇到其他问题。最后 EGitversion 1.3安装成功。

回答by ban-geoengineering

I gave up in the end and used Eclipse Kepler, which worked fine.

最后我放弃了,使用了 Eclipse Kepler,效果很好。

Would be nice to know the solution though to the original problem if anyone knows it. I'm sure others will also get this problem.

如果有人知道的话,很高兴知道原始问题的解决方案。我相信其他人也会遇到这个问题。