kirvel
kirvel

Reputation: 671

Android studio: Parameter 'directory' is not a directory

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

Upvotes: 18

Views: 10124

Answers (2)

Kristy Welsh
Kristy Welsh

Reputation: 8510

Actually, I had to clear data off of my device (emulator), and cold boot, then everything ran.

Wasted a lot of time on this.

Upvotes: 0

Peter L
Peter L

Reputation: 3343

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

Upvotes: 41

Related Questions