使用 jenkins 构建 android
Building android build with jenkins
我正在尝试使用 Jenkin 构建 android。但我收到此编译错误:
Execution failed for task ':app:mergeDebugResources'.
> Multiple task action failures occurred:
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\android_build\app\build\intermediates\res\merged\debug: error: The system cannot find the file specified. (2).
其他任何人都可以遇到这个问题。我尝试 运行 在 Android Studio 上构建,它工作正常。我已经在 jenkins 中定义了 sdk 路径并设置了 gradle。
请帮忙。
所以我找到了适合我的解决方案。我使用的是 jenkins:2.277.4,我将 jenkin 版本降级到 2.204.6,然后突然就可以用了。这次我还使用了 war 文件,因此与之前的安装相比,工作区的路径更小,是的,还使用 app:build 作为构建任务,这样您就不会收到其他库的 lint 错误。
我正在尝试使用 Jenkin 构建 android。但我收到此编译错误:
Execution failed for task ':app:mergeDebugResources'.
> Multiple task action failures occurred:
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource compilation failed
AAPT: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\android_build\app\build\intermediates\res\merged\debug: error: The system cannot find the file specified. (2).
其他任何人都可以遇到这个问题。我尝试 运行 在 Android Studio 上构建,它工作正常。我已经在 jenkins 中定义了 sdk 路径并设置了 gradle。
请帮忙。
所以我找到了适合我的解决方案。我使用的是 jenkins:2.277.4,我将 jenkin 版本降级到 2.204.6,然后突然就可以用了。这次我还使用了 war 文件,因此与之前的安装相比,工作区的路径更小,是的,还使用 app:build 作为构建任务,这样您就不会收到其他库的 lint 错误。