【Jenkins】Android build failed:build pending,Why did the Gradle Daemon die?

简介:

1、问题现象

1.1、Slave went offline during the build

image2017-11-30%2014%3A20%3A45.png?versi

1.2、useNewCruncher has been deprecated. It will be removed in a future version of the gradle plugin. New cruncher is now always enabled.

Incremental java compilation is an incubating feature.

image2017-11-30%2014%3A22%3A15.png?versi

2、问题分析&定位

从上诉两个log日志信息来看,有两种可能:

1、gradle 在构建过程中,Jenkins slave agent 的daemon异常,导致slave offline,从而build failed

2、引入了其他的Java编译方式,及一些被deprecated的api

那么我就依据初步分析的这两个可能问题去Google

3、问题解决

3.1、依据Google中各路大神对第二个问题的解析,并根据解决方案进行尝试,均无功而返。

3.2、参考Stack Overflow中对:“Why did the Gradle Daemon die?”的文章中,大神是这样解答的:

Gradle build daemon disappeared unexpectedly most frequently occurs when something else kills the long-running Gradle Daemon process and the client process (the Daemon uses local TCP connections to communicate) tries to send a message and gets no response.

For example, running gradle --stop or killall java while a build is occurring will reproduce this problem.

附文章链接:https://stackoverflow.com/questions/29660238/why-did-the-gradle-daemon-die

目录
相关文章
|
8月前
|
SQL 人工智能 移动开发
Android Studio插件版本与Gradle 版本对应关系
Android Studio插件版本与Gradle 版本对应关系
1326 0
Android Studio插件版本与Gradle 版本对应关系
|
1月前
|
Android开发
【Bug】Android resource linking failed和error: failed linking references.
【Bug】Android resource linking failed和error: failed linking references.
|
1月前
|
Android开发
Caused by: android.system.ErrnoException: android_getaddrinfo failed: EACCES (Permission denied)
Caused by: android.system.ErrnoException: android_getaddrinfo failed: EACCES (Permission denied)
36 3
|
1月前
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associate
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associate
61 2
|
4天前
|
开发工具 Android开发
android studio build异常
android studio build异常
14 3
|
1月前
|
Java 测试技术 开发工具
Android 笔记:AndroidTrain , Lint , build(1),只需一篇文章吃透Android多线程技术
Android 笔记:AndroidTrain , Lint , build(1),只需一篇文章吃透Android多线程技术
|
1月前
|
Java 测试技术 Android开发
Android Gradle 干货,看这篇文章就行了
Android Gradle 干货,看这篇文章就行了
|
1月前
|
移动开发 jenkins 持续交付
jenkins编译H5做的android端编译卫士app记录
jenkins编译H5做的android端编译卫士app记录
18 0
|
1月前
|
Shell 开发工具 Android开发
如何单独 build android ap (以launcher为例)
如何单独 build android ap (以launcher为例)
13 1
|
1月前
|
Java Android开发
Android零基础入门(二)gradle的安装和详解
Android零基础入门(二)gradle的安装和详解
36 0