Android studio: Parameter 'directory' is not a directory

Viewed 8509

When I try to build my project, I get such a mistake:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dataBindingGenBaseClassesDebug'.
> Parameter 'directory' is not a directory
1 Answers

From an answer to a similar question:

  1. Delete the .gradle directory (in the project base directory)
  2. Invalidate Caches and restart Android Studio (if necessary)

EDIT: Step 2 doesn't appear necessary on *nix systems

Related