1

我正在尝试clarifai-java-master使用Gradleand NetBeans 8.2(JDK 1.8) 进行编译,但它失败了。日志如下。

任何人都可以帮助我吗?

谢谢!

-------------
Executing: gradle clean build
Arguments: [-c, K:\D\Dados\GitHubProjects\clarifai-java-master\settings.gradle]

:core:clean
:tests:clean
:core:generateBuildConfig
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
:core:compileBuildConfig
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:core:compileJava
:core:processResources UP-TO-DATE
:core:classes
:core:jar
K:\D\Dados\GitHubProjects\clarifai-java-master\core\src\main\java\clarifai2\dto\model\ConceptModel.java:20: warning: no @return
  public final PatchModelRequest mergeConcepts() {
                                 ^
K:\D\Dados\GitHubProjects\clarifai-java-master\core\src\main\java\clarifai2\dto\model\ConceptModel.java:28: warning: no @return
  public final PatchModelRequest setConcepts() {
                                 ^
K:\D\Dados\GitHubProjects\clarifai-java-master\core\src\main\java\clarifai2\dto\model\ConceptModel.java:36: warning: no @return
  public final PatchModelRequest removeConcepts() {
                                 ^
:core:javadoc
3 warnings
:core:javadocJar
:core:sourcesJar
:core:signArchives SKIPPED
:core:assemble
:core:compileTestJava UP-TO-DATE
:core:processTestResources UP-TO-DATE
:core:testClasses UP-TO-DATE
:core:test UP-TO-DATE
:core:check UP-TO-DATE
:core:build
:tests:compileJava UP-TO-DATE
:tests:processResources UP-TO-DATE
:tests:classes UP-TO-DATE
:tests:jar
:tests:javadoc UP-TO-DATE
:tests:javadocJar
:tests:sourcesJar
:tests:assemble

FAILURE:构建失败并出现异常。

  • 出了什么问题:无法解析配置的所有依赖项:tests:testCompileClasspath

    意外状态从 com.clarifai.clarifai-api2:core:unspecified.dirty(default) 到 com.squareup.okhttp3:okhttp:3.4.1(default) 的依赖关系的父节点被逐出。

  • 尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。--info使用or选项运行--debug以获得更多日志输出。

    :tests:compileTestJava

    构建失败

    总时间:15.576 秒

构建失败(参见堆栈跟踪的通知窗口):gradle clean build

4

1 回答 1

0

我刚刚解决了添加这一行的依赖问题: compile "com.clarifai.clarifai-api2:core:2.2.0"

...在两个文件的依赖项部分: - build-gradle(core) 和 - build-gradle(test):

...并重新加载项目以进行核心和测试。

于 2016-11-29T00:46:53.753 回答