Intellij - Java Error - Gradle Sync failed: Cannot Convert relative path ~/GRADLE_HOME/daemon/6.8 to an Absolute file

Asked

Viewed 19 times

-1

The problem is appearing whenever I try to run the program, and the Packages program do not appear either. I opened the same project by Vscode and worked normally there, just not working by Intellij.

2 answers

-1

Intellij is unable to transform the directory set with ~ from the Gradle path to a disk directory.

On the MAC: Intellij --> Preferences

On Windows/Linux: File --> Settings

Then, independent of the operating system:

Build, Execution, Deployment --> Build Tools --> Gradle

In Gradle User Home, see if there’s a ~ there. If you have (this is the most common error), switch to a path/path without ~. Replace for example with: /home/nomeusuario/.gradle if this is the way of the Gradle.

-3

Hey, good night, buddy, all right? I’ve done it before, but I haven’t succeeded even with this change.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.