Permission denied on file saving and running project

Answered

Hello,

I just updated today Intellij Ultimate to it's 2020.2.1 version and I'm having a problem.

When I'm editing some file in my project in my ressource folder, it can't save.

And when I'm running my project, the first time it success but when it gives me an Exception in the code I have some Acess is denied tab with for example : Could not update ...\.gradle\6.3\fileChanges\last-build.bin

But the second time, it doesn't run at all, giving me:

Gradle could not start your build.
> Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type ChecksumService using BuildSessionScopeServices.createChecksumService().
> java.io.IOException: Access is denied

* Exception is:
org.gradle.initialization.exception.InitializationException: Gradle could not start your build.

I've searched and tried solution like invalidate cache but it didn't work.

Could someone help me please ?

0
6 comments

Disable Settings (Preferences on macOS) | Appearance & Behavior | System Settings | Back up files before saving option.

The issue can be caused by the sync services like Dropbox/OneDrive. Avoid storing projects in these folders.

1
Avatar
Permanently deleted user

Thanks, it worked for saving files ! But the problem is halfed solved, I'm still having the issue while running my project.

And it's kind of weird for sync service because I use none of them (unless github but not in this folder)

0

Try reinstalling the IDE from http://www.jetbrains.com/idea/download/index.html.

Check logs for exceptions (Help | Collect Logs and Diagnostic Data).

0
Avatar
Permanently deleted user

I've just tried reinstalling it and it didn't work :(

0

Try moving a project to a different location, disable antivirus, if it still doesn't work, share a sample project to reproduce the issue and the logs via https://uploads.jetbrains.com.

0
Avatar
Permanently deleted user

It finally worked, but what happened to my files ? This was working last week and I really change nothing unless updating intellij.

Thanks for your help !

0

Please sign in to leave a comment.