简体   繁体   English

使用Jenkins构建Android项目失败

[英]Using Jenkins to build a android project fails

I'm trying to make Jenkins successfully build my project, but I'm getting this error: 我正在尝试使Jenkins成功构建我的项目,但出现此错误:

* What went wrong:
A problem occurred configuring project ':mobile'.
> Cannot evaluate module matrix : Configuration with name 'default' not found.

Any idea of what the error is? 知道错误是什么吗?

Does your project have submodules? 您的项目有子模块吗?

I've seen this error in a case where Jenkins checked out the code, but I had not enabled submodules in the Git plugin. 在Jenkins检出代码但没有在Git插件中启用子模块的情况下,我已经看到此错误。

You just need to click on Add under "Additional behaviours", choose "Advanced sub-modules behaviours" and check "Recursively update submodules". 你只需要点击添加在“其他行为”,选择“高级子模块的行为”,并选中“递归更新子模块”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM