当我在 IDEA中打开窗口(View -> Tool Windows -> ->)并键入gradle tasks时,我将看到以下内容:
C:\Sathyaish\MyJavaAndSpringBootProject>gradle tasks
'gradle' is not recognized as an internal or external command,
operable program or batch file.
从IntelliJ IDEA显示 gradle 工具窗口(View -> Tool -> Gradle)和IDE能够
原因:org.gradle.api.GradleException:无法创建ZIP '/jenkins/repository/workspace/profile/build/libs/../profile.jar'。
Project
common << I build under this directory
profile
build.gradle(in common)
...
dependencies {
compile project(':../profile')
...
settings.
我从我的git库中提取了一些最近的更改,突然,Android Studio抛出了R.java的token not found错误。我在Android Studio中点击了"Make Project“,以为新的构建可以修复这些错误,但我得到的结果是:
Information:Compilation completed with 2 errors and 0 warnings in 5 sec
Information:2 errors
Information:0 warnings
Error:Gradle:
FAILURE: Could not determine which task
第一次在heroku上创建应用程序时,所有操作都很好,但是在nodeSetup分级任务期间,所有后续部署都会在构建过程中失败。
Failed to capture fingerprint of output files for task ':nodeSetup' property 'nodeDir' during up-to-date check.
> Could not list contents of '/tmp/build_f8eae163382a61b2896d7be434b4dc58/.gradle/nodejs/node-
我用gradle init创建了一个Kotlin/Native,并按照这里的说明,顺利地构建了这个项目,生成了一个build/bin/native/debugExecutable/executable.kexe可执行文件。
但是当我试图运行这个项目时,我得到了这样的信息:
/build/bin/native/debugExecutable/executable.kexe: error while loading shared libraries: libone.so: cannot open shared object file: No such file or directory
我使用的是
我使用gradle init将一个Maven项目转换为Gradle,之后gradle install在控制台上成功运行。然而,在Eclipse gradle导入之后,我得到了错误:
Archive for required library: '[...].gradle/caches/modules-2/files-2.1/org.apache.jena/apache-jena-libs/2.12.0/[some hash value]/apache-jena-libs-2.12.0.pom' in project 'myproject' cannot be re
我使用gradle 2.7作为linux amd64 m/c上的构建工具,当我尝试使用gradle进行构建时,我会得到java异常。
格莱德-信息
FAILURE: Build failed with an exception.
* What went wrong:
java.io.IOException: Read-only file system
堆栈跟踪结果如下:
分级-堆栈跟踪
org.gradle.api.UncheckedIOException: java.io.IOException: Read-only file system
at o
我确实安装了openjfx (通过dnf),我相信它正在寻找的jar安装在以下路径上:
/usr/lib/jvm/openjfx/lib/ant-javafx.jar
显然,我想避免这样的硬编码jar路径,但我甚至还没有找到使用该路径的方法。下面是gradle输出:
$ gradle tasks
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'testproj'.
> Couldn't find An
我试图在ubuntu设置gradle,但是我得到了一个错误:
line: 10
* What went wrong:
A problem occurred evaluating project ':GradleApplication'.
Cause: org/gradle/internal/reflect/Instantiator
Cause: org.gradle.internal.reflect.Instantiator
我的build.gradle中的第10行
apply plugin: 'android'
我的etc/environment文件是
PA
拿走
test-java:
stage: test
image: gradle:6.3.0-jdk11
script:
- gradle test
tags:
- linux
有可能是这样的:
tags:
linux:
image: gradle:6.3.0-jdk11
test-java:
stage: test
script:
- gradle test
tags:
- linux
事先谢谢,如果这个问题已经问过了,请原谅,搜索时找不到。
我们使用gradle节点插件从gradle构建节点项目。我们选择的gitlab模板使用了gradle:alpine图像。在我们的工作中,我们运行gradle包装器。构建失败的“env:无法执行‘节点’:没有这样的文件或目录”。它在我们的linux框上构建得很好。
下面是堆栈跟踪:
Caused by: java.io.IOException: Cannot run program "/builds/myueser/myproj/.gradle/nodejs/node-v10.11.0-linux-x64/bin/node" (in directory "/builds/
我在Ubuntu18.04上运行AndroidStudio3.5.3。如果我创建一个项目,并在我的Linux驱动器/home//projectname上的一个文件夹中构建或调试/运行该项目,我就能够成功地做到这一点。如果我在生成或调试/运行项目时将完全相同的项目复制到NTFS驱动器,则会看到调试和发布版本都存在此错误:
<path to project build folders>/signing-config.json: Operation not permitted
我在这里找到了一些关于Stackoverflow的信息,也可以通过web搜索找到一些信息,建议的补救方法是删除签
我正在运行一个Linux 18操作系统。在自定义本地目录中安装jdk。
通常,IntelliJ建议您使用use the default gradle wrapper。但在我的例子中,我希望能够随时更改Gradle版本,随时更新。如果在Gradle中使用IntelliJ,则会遇到以下错误:
Could not determine java version from '11.0.1'
我在Linux机器上安装了最新版本的Java (HotSpot VM 1.7.0_45),并使用Gradle 1.8。我还安装了Groovy 1.8.6版本,但我认为这并不重要,因为Gradle有自己的groovy-all.jar。
我的问题是,我无法使用gradle编译Groovy项目,因为JavaFX类似乎不在类路径中。这些错误如下:
unable to resolve class javafx.scene.Node
@ line 3, column 1.
import javafx.scene.Node
最后,我将以下可怕的硬编码路径添加到我的依赖项中,从而修复了这个问题:
co
有点奇怪,但当我开始在测试运行中复制资源时,突然间(比如,我的验收测试套件运行得很好,我正忙着做一些无关的*单元测试)。
Failed to copy /org/demo/foo/../../../concordion.css to target [Resource: /org/demo/foo/../../../concordion.css]
java.lang.RuntimeException: Failed to copy /org/demo/foo/../../../concordion.css to target [Resource: /org/demo/foo/../../../c