Error importing existing gradle project from one computer to another in eclipse

I am relatively new to gradle, but I’ve already searched a lot for this answer with no luck. I’ve been working on a gradle project on one computer and I am trying to transfer it to another computer. When importing the project into eclipse, I am getting the error, org.gradle.tooling.BuildException: Could not fetch model of type 'GradleBuild' using connection to Gradle distribution ''.

It says it is caused by LocationAwareException, but I am not sure how to fix this. Any help would be greatly appreciated!

Caused by: org.gradle.internal.exceptions.LocationAwareException: Initialization script 'C:\Users\jmarc\eclipse-workspace\.metadata\.plugins\org.eclipse.buildship.core\init.d\eclipsePlugin.gradle' Could not compile initialization script 'C:\Users\jmarc\eclipse-workspace\.metadata\.plugins\org.eclipse.buildship.core\init.d\eclipsePlugin.gradle'.