I have the latest version of Android Studio (as of Sep 21, 2016). When I create a brand new project in Android Studio and try to build it, I am getting this build error:
I encountered a similar error. Just try to reduce the path length by moving the project folder up. This will surely solve the problem.