Eclipse - 无法完成安装,因为无法找到一个或多个必需项目(org.apache.httpcomponents.httpclient) [英] Eclipse - Cannot complete the install because one or more required items could not be found (org.apache.httpcomponents.httpclient)

查看:1316
本文介绍了Eclipse - 无法完成安装,因为无法找到一个或多个必需项目(org.apache.httpcomponents.httpclient)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的版本的中安装 Eclipse Git Team Provider JGit Eclipse ADT 通过帮助>安装新软件> EGit - http://download.eclipse.org/egit/updates,但安装失败,出现此错误...

I am trying to install Eclipse Git Team Provider and JGit in my version of Eclipse ADT via Help > Install New Software > "EGit - http://download.eclipse.org/egit/updates" but the installation fails with this error...


无法完成安装,因为一个或多个所需项目可能没有找到
。正在安装的软件:Java实现Git -
可选Http支持使用Apache httpclient 3.3.1.201403241930-r
(org.eclipse.jgit.http.apache.feature.group 3.3.1.201403241930-r)

缺少需求:Apache HttpComponents HttpClient OSGi bundle
4.1.3.v201209201135(org.apache.httpcomponents.httpclient 4.1.3.v201209201135)需要'package org.apache.commons.codec.binary 1.4。 0'但无法找到不能满足依赖关系:
From:Java实现Git - 可选Http支持使用Apache httpclient 3.3.1.201403241930-r
(org.eclipse.jgit.http.apache.feature .group 3.3.1.201403241930-r)
至:org.apache.httpcomponents.httpclient [4.1.3.v201209201135]

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]

这就是说我需要安装 org.apache.httpcomponents.httpclient 4.1.3.v201209201135 package org.apache.commons.codec.binary 1.4.0 (虽然,我不清楚哪一个丢失,或者是否都缺少?)...

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

如何将它们添加到 Eclipse

我可以找到很多关于如何将jar添加到单个项目的库中的信息,但这不是我需要的,因为我认为(纠正我,如果我错了)我需要通过帮助>将它们添加到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.

我看到很多人发表类似的问题与其他依赖关系,但没有找到答案,解释如何添加这个特定的软件。

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.

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

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

推荐答案

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

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

我所做的是获得

$ b

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


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

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

解压缩文件并解压缩commons-codec-1.9.jar

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

将此Jar文件复制到Eclipse安装目录Eclipse\plugins

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

将其重命名为你的丢失包的名字。
(在我的情况下为org.apache.commons.codec.binary_1.4.0.jar)

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

现在重复安装EGit和它应该工作。

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

显然有很多事情可能与您的安装有所不同,我使用Eclipse版本4.2 .0

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

我希望这有帮助。

这篇关于Eclipse - 无法完成安装,因为无法找到一个或多个必需项目(org.apache.httpcomponents.httpclient)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆