DJL Build ERROR #2852
Replies: 4 comments 2 replies
-
Try running |
Beta Was this translation helpful? Give feedback.
-
more infomation:
|
Beta Was this translation helpful? Give feedback.
-
and my jdk is 1.8.0_271 ; and |
Beta Was this translation helpful? Give feedback.
-
See: https://github.com/deepjavalibrary/djl/blob/master/docs/development/setup.md To build DJL from source, you need JDK 11+. But DJL library can run with JDK 1.8 |
Beta Was this translation helpful? Give feedback.
-
When i build DJL with commond:./gradlew build, the system tip error:
> Task :api:compileJava FAILED Caching disabled for task ':api:compileJava' because: Build cache is disabled Task ':api:compileJava' is not up-to-date because: Task has failed previously. The input changes require a full rebuild for incremental task ':api:compileJava'. Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments. Compiling with toolchain '/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home'. Compiling with JDK Java compiler API.
and i update the gradle.properties config and add 'org.gradle.caching=false' ;then the error change:
Caching disabled for task ':api:compileJava' because: Gradle does not know how file 'build/classes/java/main/ai/djl/engine' was created (output property 'destinationDirectory'). Task output caching requires exclusive access to output paths to guarantee correctness (i.e. multiple tasks are not allowed to produce output in the same location). Task ':api:compileJava' is not up-to-date because: Task has failed previously. The input changes require a full rebuild for incremental task ':api:compileJava'. Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments. Compiling with toolchain '/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home'. Compiling with JDK Java compiler API.
it seems like 'org.gradle.caching' can influence the build result, but i don't know how to resovle it.
Beta Was this translation helpful? Give feedback.
All reactions