今天在用Android Studio 导入一个Eclipse的项目,报了如下错误:
Error:java.lang.RuntimeException: Some file crunching failed, see logs
for details
Error:Execution failed for task ':app:mergeDebugResources'
.
> Error: java.lang.RuntimeException: Some file crunching failed, see logs
for details
上网查了一下原因,说是在build.gradle(app)中加入如下语句即可,但确并没有起作用
aaptOptions {
cruncherEnabled =
false
useNewCruncher =
false
}
而事实证明,是因为drawable中有.9后缀的图片,将.9去掉即可,有的说将.jpg改为.png也会出现这个问题,这个还没有测试过
转载于:https://www.cnblogs.com/cxsy/p/8376159.html
相关资源:数据结构—成绩单生成器