为多应用Android项目设置Jenkins

时间:2019-06-23 03:18:20

标签: android jenkins gradle android-gradle jenkins-plugins

项目文件夹结构

.git
app_1
app_2
app_3
app_4

我正在为app_1 android项目配置Jenkins。 app_1的settings.gradle文件如下所示:

include ':app', '..:app_2', '..:app_3', '..:app_4'

现在,在Jenkins上构建项目时,出现以下错误。 enter image description here

我还尝试通过将settings.gradle文件更改为以下内容来构建应用:

include ':app', ':app_2', ':app_3', ':app_4'

但这会导致Android Studio Gradle构建失败。

1 个答案:

答案 0 :(得分:0)

您提到的第一个错误是因为您在settings.gradle中使用的模块名称('..:app_2')。它包含字符“ ..”。删除它,它不会抱怨这个错误。

对于第二个错误,您没有提到您遇到的错误。共享错误日志,还共享根项目和模块“ app_1”的build.gradle。

相关问题