gradle

解决:

org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

 

将守护进程设置为false,在~/.gradle 目录下 gradle.properties 文件(如果没有则新建)

org.gradle.daemon=FALSE
org.gradle.jvmargs=-XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

 

如果提示gradlew 命令没有权限则在.gitlab-ci.yml文件里的stage里添加

before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- export GITLAB_USER_NAME=GHOST
- chmod +x ./gradlew

 

你可能感兴趣的:(gradle)