Error: I will show the data as follows , so please...
# android
n
Error: I will show the data as follows , so please tell me the countermeasures. "Android studio Meerket(2024.3.1 Patch 2)" "java.io.FileNotFoundExceptionC\Users\.gradle\catchs\8.11.1\fileHashes\fileHashes.lock" , "C:\Users\.gradle\8.11.1\fileHashes.lock" .
c
Never had that issue. Have you tried rebooting your system?
n
I restarted it, but the error persisted.
a
Delete those lock files manually, try again It could happen if you killed gradle daemon
n
The file is locked , and I don't know where it is.
a
check that you have access to those dirs
also, please explain your error
n
I would like to report an error. I am using a Windows 11 PC. In "windows (C:)>user>AndroidStudioProjects", I was investigating the write permissions after unchecking the "Read-only" property of "AndroidStudioProjects." After starting "Android Studio," the project became locked. I don’t know how to access the directory.
a
sorry, I really don't understand your problem this error message essentially complaints that it cannot access locks, does your user has access to C:\Users\.gradle? Does it happen only on specific project?
n
Access is possible to "C:Users.gradle". Errors have occurred in three projects. Attaching the error message from "Android Studio": ":\Users\.gradle\caches\8.11.1\fileHashes\fileHashes.lock" .
a
It doesn't look as a full error message
n
Gradle could not start your build. > Cannot create service of type BuildSessionActionExecutor using method LauncherServices$ToolingBuildSessionScopeServices.createActionExecutor() as there is a "problem with parameter #22 of type ValueSnapshotter. > Cannot create service of type ValueSnapshotter using method WorkerSharedBuildSessionScopeServices.createValueSnapshotter() as there is a problem with parameter #1 of type List<ValueSnapshotterSerializerRegistry>. > Could not create service of type ResourceSnapshotterCacheService using GradleUserHomeServices.createResourceSnapshotterCacheService(). > java.io.FileNotFoundException: C:\Users\user\.gradle\caches\8.11.1\fileHashes\fileHashes.lock" That' all. I will send a detailed error message.
If there are any countermeasures, please let me know.
a
You just giving not enough information
is build works from the console?\
n
I don't understand the meaning of 'build'.
After using the Gradle cache deletion script (clear_gradle_cache.bat) to clear Gradle's cache, I was able to unlock Android Studio. Since the problem is now resolved, I would like to conclude here. Thank you very much for all your help.