:mergeDebugResources'. > Error: Failed to crunch file

I had exactly the same error, when I was using the google plus plugin. I tried to move the project to a smaller path and it worked.
Searching a bit more about it, it seems that Google has a 240 characters size limitation to the path.
Another possible solution, is to add to your platforms/android/build.gradle, inside allprojects, this line:
buildDir = "C:/tmp/${rootProject.name}/${project.name}"
Now your build file will be moved to a smaller path and the problem will disappear.

10 Likes