Android 错误:app:mergeClient\u flavourDebugResources

Android 错误:app:mergeClient\u flavourDebugResources,android,jenkins,Android,Jenkins,我正在Jenkins上使用clean Assembly命令构建一个adroid项目 每次运行显示此错误时,我的生成都会失败。是否有人可以帮助我或告诉我如何解决与app:和proguard相关的错误。 下面是日志中显示错误的部分 Error: Some file crunching failed, see logs for details :app:mergeClient_flavourDebugResources FAILED FAILURE: Build failed with an exc

我正在Jenkins上使用clean Assembly命令构建一个adroid项目

每次运行显示此错误时,我的生成都会失败。是否有人可以帮助我或告诉我如何解决与app:和proguard相关的错误。 下面是日志中显示错误的部分

Error: Some file crunching failed, see logs for details
:app:mergeClient_flavourDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeClient_flavourDebugResources'.
> Error: Some file crunching failed, see logs for details

您使用的某些资源的文件名中必须包含不支持的字符。在项目的
res
文件夹中检查文件名

如果在项目中使用9面片图像,有时也会发生这种情况


如果您在项目中使用9-patch图像,请使用android studio的9-patch编辑器稍微修改该图像,然后尝试构建项目。

感谢Ronak,我已在local.properties中添加了这两个属性,并解决了此问题。android.enableBuildCache=true android.buildCacheDir C:\\android\u build\u cache\\