一些文件处理失败,请参阅日志以获取详细信息 [英] Some file crunching failed, see logs for details

查看:200
本文介绍了一些文件处理失败,请参阅日志以获取详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我获得了稳定版本的android studio 2.0更新.

Today I got update for android studio 2.0 in stable version.

我对其进行了更新,然后重新启动.

I update it and it restarted.

然后,当它打开我现有的项目时,它要求我将gradle插件更新为2.0,以获取即时运行" 的优势以及我当前的android studio 2.0项目的其他功能

Then when It opens my existing project, it ask me to update my gradle plugin to 2.0 to get advantages of "instant run" and other features to my current project of android studio 2.0

所以我对其进行了更新并将其设置为

So I update it and it sets to

classpath'com.android.tools.build:gradle:2.0.0'

classpath 'com.android.tools.build:gradle:2.0.0'

但是当我清理项目时,它给了我下面的错误

but when I clean the project it gives me below error

AAPT错误(Facade for 1961798984):libpng错误:读取错误.

AAPT err(Facade for 1961798984): libpng error: Read Error.

错误:任务':app:mergeDebugResources'的执行失败.

Error:Execution failed for task ':app:mergeDebugResources'.

某些文件处理失败,请参阅日志以获取详细信息

Some file crunching failed, see logs for details

我试图修复它很多次,但是没有解决.

I tried to fixed it many times but it didn't solve.

谁能知道此错误的原因是什么?

Can anyone know what is the reason for this error ?

推荐答案

您可以尝试将其添加到应用程序build.gradle文件中

You can try to add this to your app build.gradle file

 android {
    aaptOptions {  
                cruncherEnabled = false  
            } 
        }

这篇关于一些文件处理失败,请参阅日志以获取详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆