Android Studio 导入 Eclipse项目 报 Some file crunching failed, see logs for details

今天在用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也会出现这个问题,这个还没有测试过

posted @ 2018-01-29 10:35  )^程序猿^(  阅读(211)  评论(0编辑  收藏  举报