【问题标题】:Using Jenkins to build a android project fails使用 Jenkins 构建 android 项目失败
【发布时间】:2015-12-28 00:45:25
【问题描述】:

我正在尝试让 Jenkins 成功构建我的项目,但出现此错误:

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

知道错误是什么吗?

【问题讨论】:

  • gradle wrapper 配置了吗?
  • gradlew 命令是否在本地命令行上为您工作?可能是gradle的配置错误
  • graddle 配置好了,如果我运行项目,一切都好。它编译没有任何问题。

标签: android mobile jenkins


【解决方案1】:

你的项目有子模块吗?

我在 Jenkins 检查代码的情况下看到了这个错误,但我没有在 Git 插件中启用子模块。

您只需点击“附加行为”下的添加,选择“高级子模块行为”并勾选“递归更新子模块”。

【讨论】:

    猜你喜欢
    • 2012-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-19
    • 2013-08-17
    • 1970-01-01
    • 2018-03-19
    • 2013-03-12
    相关资源
    最近更新 更多