Md Shahnawaz
Md Shahnawaz

Reputation: 584

Gradle build failed : Cannot create directory /home/vassar/.android/build-cache/3.4.0

I am trying to create a new project.

Getting Cannot create directory /home/vassar/.android/build-cache/3.4.0 error.

I tried Clean, Rebuild, Invalidate Caches

Upvotes: 4

Views: 1451

Answers (2)

johnnyshrewd
johnnyshrewd

Reputation: 1180

sudo chown -R $(whoami) /Users/$(whoami)/.android

Upvotes: 2

Martin Zeitler
Martin Zeitler

Reputation: 76679

try to take ownership of the directory: sudo chown -R vassar:vassar /home/vassar/.android.

Upvotes: 6

Related Questions