Android Studio: “Execution failed for task ‘:app:mergeDebugResources’” if project is created on drive C:

This is caused by the path length restriction. I think it’s 256 characters maximum.

Relocate your project and the build will succeed.

Leave a Comment