SilverBlue
SilverBlue

Reputation: 269

Error: Could not create service of type TaskArtifactStateRepository

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

Answers (2)

Samuel Dauzon
Samuel Dauzon

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

SilverBlue
SilverBlue

Reputation: 269

Solved:

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

Upvotes: -1

Related Questions