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

后端 未结 22 2390
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:38

    I was getting the same error and it worked for me. Hope it helps.

    As Niklas said, you have to update to the latest Gradle version.


    My way to solve the error:

    1. Open your Android Studio (AS) program.
    2. Go to your build.gradle file in your project.
    3. Change:

      dependencies {
          classpath 'com.android.tools.build:gradle:1.1.0'
      

      to:

      dependencies {
          classpath 'com.android.tools.build:gradle:1.1.3'
      
    4. Sync your Android project with Gradle:

    5. Clean your project.

    6. Rebuild your project.
    7. Done!

    If its still not working:

    1. Close your Android Studio program and open it again.
    2. Try compiling the code.
    3. Done!

    If you need more help, read the issue on Google Code!

提交回复
热议问题