Hi,
I’m using Gradle for Android project.
When I tried to build project in Mac OSX Catalina from command line, the process of Gradle has reached to failure.
How to fix this error?
OS: 10.15.2(Catalina)
IDE: Android Studio 3.5
Gradle version: 5.4.1
Command
./gradlew assembleDebug --no-daemon -d
Result
.....
20:53:47.051 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpOutgoingConnector] Trying to connect to address /0:0:0:0:0:0:0:1.
20:53:47.055 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpOutgoingConnector] Connected to address /0:0:0:0:0:0:0:1:62996.
20:53:47.063 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Connected to daemon DaemonInfo{pid=24336, address=[f3438817-fae4-4449-af91-796cbd972c8f port:62996, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Busy, lastBusy=1578311627019, context=DefaultDaemonContext[uid=12223f6f-8c6c-41c3-b11c-443daf1b04b7,javaHome=/Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home,daemonRegistryDir=/Users/hasegawa/.gradle/daemon,pid=24336,idleTimeout=120000,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-Xmx1536m,-Dfile.encoding=UTF-8,-Duser.country=JP,-Duser.language=ja,-Duser.variant]}. Dispatching request Build{id=286f5426-e204-4254-abca-a7590db42ddd, currentDir=/Users/hasegawa/workspace/android/MyApplication}.
20:53:47.064 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Build
20:55:47.067 [DEBUG] [org.gradle.internal.remote.internal.inet.SocketConnection] Discarding EOFException: java.io.EOFException
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] The first result from the daemon was empty. Most likely the process died immediately after connection.
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights.
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
20:55:47.072 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org