Note: This seems to be an issue with the Android plugin. See comments for associated issues.
I get the following gradle error when building the project:
Also if none of the 'clean', 'build' etc did not work, then go to Build menu and select "Make Project". It fixed the error for me.
Although it is advisable to perform a clean and build before this.