【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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值