开发者社区> awesome@qa> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

【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

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
ndk-build.cmd‘‘ finished with non-zero exit value 2
ndk-build.cmd‘‘ finished with non-zero exit value 2
0 0
遇到错误怎么办:ndk-build.cmd‘‘ finished with non-zero exit value 2
遇到错误怎么办:ndk-build.cmd‘‘ finished with non-zero exit value 2
0 0
Failed to find Build Tools revision 25.0.2
Failed to find Build Tools revision 25.0.2
0 0
yarn打包报错:error during build: Error: Assigning to rvalue (Note that you need plugins to import files
yarn打包报错:error during build: Error: Assigning to rvalue (Note that you need plugins to import files
0 0
Failed to find Build Tools revision 28.0.3
Failed to find Build Tools revision 28.0.3
0 0
【已解决】Android Studio下,gradle project sync failed 错误
原文:【已解决】Android Studio下,gradle project sync failed 错误 Android studio下突然报错 gradle project sync failed.
1702 0
【Android错误集锦】Error:Execution failed for task ':app:processMockDebugManifest'.
错误描述: Error:Execution failed for task ':app:processMockDebugManifest'. > Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.
1521 0
Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
android studio 2.1.2  run提示错误信息:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled. Instant Run requires 'Tools | Android | Enable ADB
1147 0
+关注
awesome@qa
百度外卖用户端测试团队负责人,负责团队技术发展规划以及项目质量保障。负责设计并开发自动化测试框架与工具,帮助团队提升测试的质量和效率。深入理解持续集成体系建设,对质量体系有深刻的理解和积累。
文章
问答
文章排行榜
最热
最新
相关电子书
更多
Well-That-Escalated-Quickly-How-Abusing-The-Docker-API-Led-To-Remote-Code-Execution-Same-Origin-Bypass-And-Persistence
立即下载
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载