Some file crunching failed, see logs for details

后端 未结 12 1978
不思量自难忘°
不思量自难忘° 2020-12-03 05:23

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

I update it and it restarted.

Then when It opens my existing project, it ask me to update my gra

相关标签:
12条回答
  • 2020-12-03 06:10

    I've ran into this issue a couple times. The issue I've found is that an asset is either corrupted or has the wrong file extension. In my case it's usually a corrupted image I'd get from the art department. Once I removed the offending file, everything would compile and run just fine.

    Basically what's happening is that Android is trying to compress and format the assets and resources, but if one of them is corrupted then it fails.

    So try removing any recently added assets or resources.

    0 讨论(0)
  • 2020-12-03 06:10

    Lower down the gradle version in build.graddle file to 1.3.0

     dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'
     }
    
    0 讨论(0)
  • 2020-12-03 06:12

    This problem is caused generally by errors inside the resources files,

    Some file crunching failed, see logs for details

    most of the times we only see this message all the time, but to have a better diagnostic, delete the folders /build and his contain in your proyect, then the real problemas will show:

    0 讨论(0)
  • 2020-12-03 06:13

    in my case it was a png with size 0 in one of the folders.

    0 讨论(0)
  • 2020-12-03 06:13

    I use this code.Its working for me perfectly.

    android {
    aaptOptions {  
                cruncherEnabled = false  
                } 
       }
    
    0 讨论(0)
  • 2020-12-03 06:14
    simple answer works for sure....
    
    just add below code in the build.gradle(Module:app) of your project:
    
    android {
        aaptOptions {
            cruncherEnabled = false
        }
    }
    
    example:
    

    Works 100%...@Ambilpur

    0 讨论(0)
提交回复
热议问题