How to solve FileCollectionSnapshotterRegistry error on gradle build?

Viewed 2673

After instal in another computer the android studio, and then create the libgdx project, when i run the project, the graidle build failed with this erro:

**Error:Could not create service of type FileCollectionSnapshotterRegistry using TaskExecutionServices.createFileCollectionSnapshotterRegistry().

Could not create service of type CachingFileHasher using TaskExecutionServices.createFileSnapshotter().**

Anyone knows how to solve this problem?

2 Answers

I had this problem when debugging and executing the Gradle build at the same time.

The reason is that the /build folder (output directory or $buildDir) is locked by the debugging process, so stopping it will be OK.

Related