Some file crunching failed, see logs for details

后端 未结 12 1977
不思量自难忘°
不思量自难忘° 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 05:52

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

     android {
        aaptOptions {  
                    cruncherEnabled = false  
                } 
            }
    
    0 讨论(0)
  • 2020-12-03 05:55

    i had the same issue.

    in my case it happends after i added 9-patch file to the project.

    Problem: one of the patches arount the image is missing.

    Fix: double click on the 9-patch file. make sure you set the patches in all sides (up,down,right,left).

    in my case this was the only solution after i tried many things

    0 讨论(0)
  • 2020-12-03 05:56

    do not change file extension while pasting into the drawable folder... Some error may occur due to that change (ex: logo.PNG to logo.png )... to avoid this kind of problem you should edit extension before pasting into the drawable.

    0 讨论(0)
  • 2020-12-03 05:57
    aaptOptions {
            cruncherEnabled = false
    }
    

    Add the above line to your application module build.gradle

    Clear the build cache Similar to the Android plugin's clean task that clears your project’s build/ directories, you can run the cleanBuildCache task to clear your project’s build cache. If a project specifies a non-default directory for its build cache, running the task from that project clears only that cache (and not the shared cache in the default location). To execute the task, select View > Tool Windows > Terminal from the menu bar and use one of the following commands:

    On Windows:

    gradlew cleanBuildCache
    

    On Mac or Linux:

    ./gradlew cleanBuildCache
    
    0 讨论(0)
  • 2020-12-03 06:02

    I ran into this problem in the past and did just back the version down. Today when I upgraded to AS 2.0, I got the same problem with the images. I did have to hunt down the offending images (there were 2 in my case) and had my designer re-export them.

    Here's how I diagnosed (I'm on a mac FYI):

    ./gradlew :app:mergeIntegrationDebugResources --debug > buildLog.txt
    

    Once that finished, I opened up the buildLog.txt file, and searched for "Error" (no quotes in actual search). I saw which file was having problems, and then removed it from the appropriate folder, and then re-ran the command above until I didn't get any errors.

    I then sent the files that were having problems to my designer and had them re-exported.

    Hope this helps!

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

    Please add the below code inside android {} in build.gradle (Module:app)

    aaptOptions {  
                    cruncherEnabled = false  
                } 
    

    PFA screenshotApp Gradle Build

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