Android Studio 2024.1.1 - Gradle Project sync failed

I try to use Android Studio but there is a problem since i downloaded it, the sync fail. I always got the same Error messages :

  • “Could not move temporary workspace”
  • “java.nio.file.AccessDeniedException”
    I tried to clean the project but i don’t have this option in the “Build” menu. So i manually removed the caches folder but it didn’t work. I also uninstalled and reinstalled but it didn’t work. And for last i change the gradle version in “gradle-wrapper.properties” from 8.7 to 8.5 but 8.7 is the min version for my plugin. Hope someone could help me. Thanks in advance.

Probably these:

Do NOT try to run anything as administrator.
This will just makes things much worse, as files created in cache directories and similar then are from then on only usable if you always run as administrator.