Import roject to eclipse

I’m using Buildship in order to import my gradle project to eclipse IDE.

However, I’m getting this error message:

Synchronize Gradle projects with workspace failed due to an error connecting to the Gradle build.
Could not run build action using Gradle distribution ''.

Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at
Please read the following process output to find out more:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=4g; support was removed in 8.0
Invalid maximum heap size: -Xmx4g
The specified size exceeds the maximum representable size.

It looks like that you use a 32-bit JVM. If you use a 64-bit OS, you should also use a 64-bit JVM too. If not, then you can try setting the max heap size to a lower value via