Error:Execution failed for task ':ProjectName:mergeDebugResources'. > Crunching Cruncher *some file* failed, see logs

后端 未结 22 2362
Happy的楠姐
Happy的楠姐 2020-11-29 07:49

I have this error when trying to make a module of a project

apply plugin: \'com.android.library\'

android {
    compileSdkVersion 17
    buildToolsVersion \         


        
相关标签:
22条回答
  • 2020-11-29 08:40

    As stated here this can happen when using the Gradle Tools v1.1.0. After updating to v1.1.3, this has not happened anymore.

    0 讨论(0)
  • 2020-11-29 08:43

    I had the same problem.

    It was caused by a corrupted file. If you added some new Drawable before getting this error, check them to see if they are correctly display in Android Studio Viewer.

    0 讨论(0)
  • 2020-11-29 08:45

    Today I also met this problem. Here is how I solved it:

    1. I built the app, then I saw the errors in the message window. They said the picture (with the full path) was malformed.
    2. Then I found the malformed png which had the name xxx.9.png.
    3. I renamed it to xxx9.png and rebuilt. There were no errors, and the java files with the red wave under the name are gone too.
    0 讨论(0)
  • 2020-11-29 08:46

    Clean the project and build it again

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