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:
Its a known issue :As Documented here
Just do this simply (No need to type commands)
Build > Clean Project from the menu bar.
Then sync your project files with Gradle by clicking Sync Project from the toolbar.