我在eclipse中有一個簡單的gradle項目。我更新的build.gradle包括少數的Apache HTTP罐子......在eclipse中更新我的gradle依賴關係
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
compile 'org.apache.httpcomponents:httpclient:4.2.3'
compile "org.apache.httpcomponents:httpmime:4.2.3"
testCompile group: 'junit', name: 'junit', version: '4.+'
}
在我的代碼,在這裏我引用一些的Apache HTTP東西
但是我得到:
The import org.apache.http cannot be resolved
什麼任何提示我需要做的是讓Eclipse在我的build.gradle中看到新的依賴關係?
我嘗試做一個乾淨的,但沒有奏效。我gradle這個插件是:
Gradle IDE 3.3.0.201307040643-RELEASE org.springsource.ide.eclipse.gradle.feature.feature.group GoPivotal, Inc.
這一個爲我工作。 – Gondy
我想知道爲什麼這個答案仍然不被接受! –
從此刻起,我開始愛上Gradle! – Namek