Reputation: 269
Message Gradle Build:
Error:Could not create service of type TaskArtifactStateRepository using TaskExecutionServices.createTaskArtifactStateRepository().
Unexpected lock protocol found in lock file. Expected 3, found 0.
I've deinstalled Android Studio, clear all caches and try to invalidate caches and restart, nothing helps
Upvotes: 3
Views: 6565
Reputation: 11334
I resolved this issue by CHMOD my project directory recursively :
sudo chmod -R 0777 project/*
In Mac OS I do also :
sudo chmod 0777 /Applications/Android Studio.app/Contents/gradle/gradle-4.6/bin/gradle
Upvotes: 3