0

In every project I'm getting same following error

Information:Gradle tasks [clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources] Error:Execution failed for task ':app:mergeDebugResources'. Error: Some file crunching failed, see logs for details Error:Some file crunching failed, see logs for details Information:BUILD FAILED

Even if I'm creating new project, without adding anything I'm getting above error, also getting an

Cannot resolve symbol 'R'

in every project.

Kiran Malvi
  • 636
  • 2
  • 9
  • 29

2 Answers2

0

Please check any resource file is missing or not.

Otherwise go to Build in the top menu and click on Clean Project.

If this also not works then restart Android Studio.

Avijit Karmakar
  • 8,890
  • 6
  • 44
  • 59
0

Sometimes this error comes due to the path of the project file.

Try relocating your project with short path address and then try to build the project.

Jubin Mathai
  • 101
  • 5