Cannot convert relative path ~/.gradle/daemon/6.4.1 to an absolute file

Viewed 2401

I'm trying to configure libgdx on Inteliij IDE using gradle and im getting error:

Cannot convert relative path ~/.gradle/daemon/6.4.1 to an absolute file.

I have no idea how to solve it and didn't find any solution on the internet. Can you help me?

1 Answers

Go to File ⇒ Settings ⇒ Build, Execution, Deployment ⇒ Build Tools ⇒ Gradle, and change gradle user home to /home/your-linux-account/.gradle instead of ~/.gradle.

It seems like IntelliJ just doesn't translate the tilde ~ to the home directory of the user, so it has to be written out.

Related