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

android, apache, dependencies, eclipse, git

Solution

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

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

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

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

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

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

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

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

I hope this helps.

Problem

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... 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] 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?)... How do I add it/them to `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. I'm new to Eclipse, so any help would be much appreciated.

Original source