【发布时间】:2013-07-28 07:00:36
【问题描述】:
我的 Eclipse 中有一个简单的 gradle 项目。我更新了 build.gradle 以包含一些 apache http jars...
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.
【问题讨论】: