Error: Could not create service of type TaskArtifactStateRepository

Viewed 6428

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

2 Answers

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

Solved:

I deleted the path /.gradle in my project-path

Related