ProjectName:mergeDebugResources'. > Some file crunching failed,see logs for details

今天在导入项目时出现了一个问题,报错为:
ProjectName:mergeDebugResources'. > Some file crunching failed,see logs for details_第1张图片

Error:Execution failed for task ':ProjectName:mergeDebugResources'.
> Some file crunching failed, see logs for details

在网上搜索了一下资料,找到了一个方法完美解决:
在build.gradle(Module:ProjectName)中加入

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false

ProjectName:mergeDebugResources'. > Some file crunching failed,see logs for details_第2张图片
之后Clean Project –> Rebuild Project,问题解决。

你可能感兴趣的:(gradle,Android)