Automated build with com.android.tools.build:gradle results in undebuggable error


(Enlightment) #1

I’m trying to build an Android project using a Docker environment of Ubuntu with JDK 8 and the new automated build system of Atlassian - Pipelines beta. The project gets built easily on my dev machine with Android Studio, but with the above configuration all kind of problems appear. I had to update to the last alpha version of Gradle for Android, so that some errors get resolved - ‘com.android.tools.build:gradle:2.2.0-alpha5’. The project is Java 8 compatible, I’ve used only 1-2 lambdas. Some additional info: compileSdkVersion 24, buildToolsVersion ‘24.0.0’, minSdkVersion 15.

The problem is that now I don’t have any clue what’s wrong.

This is the last part of the log from the command: ./gradlew assembleTrunkDebug --no-daemon --stacktrace --debug - https://dl.dropboxusercontent.com/u/57385182/log.txt.

I’ve also tried:
./gradlew wrapper --gradle-version=2.14.1
./gradlew assembleTrunkDebug --no-daemon --stacktrace --debug

Produces the following Log

`e[1m> Building 58% > :LoyaxClientStandard:transformClassesWithPreJackPackagedLibrariesForTrunkDebuge[22me[95D19:45:46.211 [DEBUG] [org.gradle.internal.remote.internal.inet.SocketConnection] Discarding EOFException: java.io.EOFException
e[1m> Building 58% > :LoyaxClientStandard:transformClassesWithPreJackPackagedLibrariesForTrunkDebuge[22me[95D19:45:46.232 [ERROR] [org.gradle.launcher.daemon.client.DaemonClient] The message received from the daemon indicates that the daemon has disappeared.
Build request sent: BuildAndStop{id=f0008515-32e8-4448-80e0-8c4616c4d32c.1, currentDir=/opt/atlassian/bitbucketci/agent/build}
Attempting to read last messages from the daemon log…
e[1m> Building 58% > :LoyaxClientStandard:transformClassesWithPreJackPackagedLibrariesForTrunkDebuge[22me[95D19:45:46.494 [ERROR] [org.gradle.launcher.daemon.client.DaemonClient] Daemon pid: 105e[0K
log file: /root/.gradle/daemon/2.14.1/daemon-105.out.log
----- Last 20 lines from daemon log file - daemon-105.out.log -----
19:45:45.962 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/87/B2D6FBD14BE4CFAA04DA898C8E4A6CE1306B36’ (’/tmp/vfs-1469907936242-0/87/B2D6FBD14BE4CFAA04DA898C8E4A6CE1306B36’)
19:45:45.963 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/EF/F810CD146E307187E33257718AF15A0D5B9823’ (’/tmp/vfs-1469907936242-0/EF/F810CD146E307187E33257718AF15A0D5B9823’)
19:45:45.963 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/E7/813BFB47188A6D9568003E141BCCB414A55F42’ (’/tmp/vfs-1469907936242-0/E7/813BFB47188A6D9568003E141BCCB414A55F42’)
19:45:45.964 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/F0/B66FAC169D7C55462E0800045597DAA9B902A6’ (’/tmp/vfs-1469907936242-0/F0/B66FAC169D7C55462E0800045597DAA9B902A6’)
19:45:45.967 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/08/77F8F8E34CE028076BA3E2C43571B32FE0C23F’ (’/tmp/vfs-1469907936242-0/08/77F8F8E34CE028076BA3E2C43571B32FE0C23F’)
19:45:45.979 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/5D/8AFC444CFB207D0AEACA6A4B71EFBF629780A3’ (’/tmp/vfs-1469907936242-0/5D/8AFC444CFB207D0AEACA6A4B71EFBF629780A3’)
19:45:45.980 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/42/25E9C1C99A3A3E3427929D41FDEC902E004B9B’ (’/tmp/vfs-1469907936242-0/42/25E9C1C99A3A3E3427929D41FDEC902E004B9B’)
19:45:45.981 [DEBUG] [com.android.sched.util.file.Directory] Create directory ‘/tmp/vfs-1469907936242-0/3A’ (’/tmp/vfs-1469907936242-0/3A’)
19:45:45.981 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/3A/769B3F14D738C1D42055D839F4FBC5C431F250’ (’/tmp/vfs-1469907936242-0/3A/769B3F14D738C1D42055D839F4FBC5C431F250’)
19:45:45.981 [DEBUG] [com.android.sched.util.file.Directory] Create directory ‘/tmp/vfs-1469907936242-0/5C’ (’/tmp/vfs-1469907936242-0/5C’)
19:45:45.982 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/5C/6F08F05EE168180FB395AEAD52DBCDCDFCDE80’ (’/tmp/vfs-1469907936242-0/5C/6F08F05EE168180FB395AEAD52DBCDCDFCDE80’)
19:45:45.983 [DEBUG] [com.android.sched.util.file.Directory] Create directory ‘/tmp/vfs-1469907936242-0/28’ (’/tmp/vfs-1469907936242-0/28’)
19:45:45.983 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/28/F2482E8C9F7C1B96B7C21F0A221B1211721D66’ (’/tmp/vfs-1469907936242-0/28/F2482E8C9F7C1B96B7C21F0A221B1211721D66’)
19:45:45.984 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/26/9674FA530BD77D5B5FF20DD9A8954678E55B51’ (’/tmp/vfs-1469907936242-0/26/9674FA530BD77D5B5FF20DD9A8954678E55B51’)
19:45:45.985 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/12/CC8D68CFF870560528EEBC59CA6210FA3C868C’ (’/tmp/vfs-1469907936242-0/12/CC8D68CFF870560528EEBC59CA6210FA3C868C’)
19:45:45.987 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/71/09A07AF390077507BF51FCF3EE4760BA0B667B’ (’/tmp/vfs-1469907936242-0/71/09A07AF390077507BF51FCF3EE4760BA0B667B’)
19:45:45.989 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/B9/304C4386E77257467698DC35BEE11001A0095B’ (’/tmp/vfs-1469907936242-0/B9/304C4386E77257467698DC35BEE11001A0095B’)
19:45:45.990 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/CA/FE08FA24B8F1347EE7AE35DD8C30000AE6996A’ (’/tmp/vfs-1469907936242-0/CA/FE08FA24B8F1347EE7AE35DD8C30000AE6996A’)
19:45:45.990 [DEBUG] [com.android.sched.util.file.Directory] Create directory ‘/tmp/vfs-1469907936242-0/7C’ (’/tmp/vfs-1469907936242-0/7C’)
19:45:45.991 [DEBUG] [com.android.sched.util.file.AbstractStreamFile] Create file ‘/tmp/vfs-1469907936242-0/7C/8D5FE652D20DE4D7E99983A8C740954D3764CE’ (’/tmp/vfs-1469907936242-0/7C/8D5FE652D20DE4D7E99983A8C740954D3764CE’)
----- End of the daemon log -----

e[1m> Building 58% > :LoyaxClientStandard:transformClassesWithPreJackPackagedLibrariesForTrunkDebuge[22me[95D19:45:46.495 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: org.gradle.launcher.daemon.protocol.CloseInput@2b829969
19:45:46.495 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 21: dispatching class org.gradle.launcher.daemon.protocol.CloseInput
19:45:46.520 [ERROR] [org.gradle.BuildExceptionReporter]
19:45:46.521 [ERROR] [org.gradle.BuildExceptionReporter] e[31mFAILURE: e[39me[31mBuild failed with an exception.e[39m
19:45:46.521 [ERROR] [org.gradle.BuildExceptionReporter]
19:45:46.521 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
19:45:46.521 [ERROR] [org.gradle.BuildExceptionReporter] Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
19:45:46.521 [ERROR] [org.gradle.BuildExceptionReporter]
19:45:46.521 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DaemonClient.handleDaemonDisappearance(DaemonClient.java:222)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DaemonClient.monitorBuild(DaemonClient.java:198)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DaemonClient.executeBuild(DaemonClient.java:162)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:55)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:37)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:239)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:212)
19:45:46.522 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:205)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Method.java:498)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Method.java:498)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
19:45:46.523 [ERROR] [org.gradle.BuildExceptionReporter]
e[1m> Building 58% > :LoyaxClientStandard:transformClassesWithPreJackPackagedLibrariesForTrunkDebuge[22me[0m`