```../gradle/home/caches/8.6/kotlin-dsl/scripts/5c...
# community-support
b
Copy code
../gradle/home/caches/8.6/kotlin-dsl/scripts/5c95e8bdea9d1f510522d6cd009e3ea4/metadata.bin (No such file or directory)
getting the above issue when syncing my project, any idea as to why this is happening?
FAILURE: Build failed with an exception. * What went wrong: Could not read workspace metadata from .../gradle/home/caches/8.6/kotlin-dsl/scripts/5c95e8bdea9d1f510522d6cd009e3ea4/metadata.bin
.../gradle/home/caches/8.6/kotlin-dsl/scripts/5c95e8bdea9d1f510522d6cd009e3ea4/metadata.bin (No such file or directory)
* Try:
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
* Exception is: java.io.UncheckedIOException: Could not read workspace metadata from .../gradle/home/caches/8.6/kotlin-dsl/scripts/5c95e8bdea9d1f510522d6cd009e3ea4/metadata.bin at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47) Caused by: java.io.FileNotFoundException: .../gradle/home/caches/8.6/kotlin-dsl/scripts/5c95e8bdea9d1f510522d6cd009e3ea4/metadata.bin (No such file or directory) at org.gradle.internal.execution.history.impl.DefaultImmutableWorkspaceMetadataStore.loadWorkspaceMetadata(DefaultImmutableWorkspaceMetadataStore.java:45) ... 188 more CONFIGURE FAILED in 291ms
p
Seems like a version mismatch. Ensure your Gradle version is compatible with your java installed version. Also the plugins you used ensure they are compatible with the gradle version you are using.
v
What makes you think this is a Java version incompatibility? Doesn't look in any way like a Java version incompatibility.
More like a permissions error maybe, for example from previously running a Gradle build with
sudo
and now not being able to read or write certain directories / files.
Make sure the permissions are fine, and if in doubt, delete the caches and try again.
p
Nothing indicates that, it is just that I have had similar issues and that turns out to be the problems. Either java version not compatible with Gradle and some plugins. But yeah now reading it twice, the stacktrace isn't related to that
b
I have deleted the cache, it wasn't helping either let me try permission option, running with sudo
v
Running with sudo is a very bad idea. I said this could have been the source of your problems.
b
ok 👍