我正在尝试配置矩阵项目以在不同的模拟器配置上运行我的 apk,但是当我尝试使用 "Google Inc.:Google APIs:16" 作为我的操作系统目标时,项目没有构建.当我尝试在 Android 4.1 上构建时它可以工作,但我需要使用 google api 在其上运行 monkey。我应该使用 os 参数向矩阵输入什么以使用 google API 创建模拟器 ??
Triggering ldpi,Google Inc.:Google APIs:16,WVGA ldpi,Google Inc.:Google APIs:16,WVGA completed with result FAILURE
-
java.io.IOException: Failed to mkdirs: ...\MatrixProject\density\ldpi\os\Google Inc.:Google APIs:16\resolution\WVGA at hudson.FilePath.mkdirs(FilePath.java:973) at hudson.model.AbstractProject.checkout(AbstractProject.java:1323) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1516) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) [FINDBUGS] Skipping publisher since build result is FAILURE
最佳答案
看起来您使用的是 Windows,它不支持其中包含冒号的文件名,因此 Jenkins 在尝试为每个构建组合创建唯一目录时失败。
当前您的操作系统版本轴包含类似“Google Inc.:Google APIs:16
”的值,“Android 操作系统”字段可能包含类似“${os}
”的值。
相反,尝试将轴更改为仅包含 API 级别,例如“16
”,并将“Android 操作系统”字段更改为“Google Inc.:Google APIs:${os}
”。
这样,Jenkins 创建的目录名称将不包含冒号。
关于android - 如何在 Jenkins 上使用 google api 创建多配置矩阵项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13271361/