Skip to main content



      Home
Home » Eclipse Projects » Buildship » Could not run phased build action using connection to Gradle distribution(Error when trying to import new gradle project)
Could not run phased build action using connection to Gradle distribution [message #1843161] Fri, 16 July 2021 18:04 Go to next message
Eclipse UserFriend
I got this error a couple hours ago and have tried about a million 'fixes' online no one which have worked:

Could not run phased build action using connection to Gradle distribution 'h.ttps://services.gradle.org/distributions/gradle-7.1.1-all.zip'.
Build file 'C:\Users\[User]\Documents\[ProjectName]\build.gradle' line: 10
A problem occurred evaluating root project '[ProjectName]'.
Failed to apply plugin 'net.minecraftforge.gradle'.
Found java version 16.0.1. Versions 16 and newer are not supported yet.
Note: Support for running under Java 16 requires Gradle 7, which will be supported in ForgeGradle 5.

It says that java version above 16 arent supported but that contradicts what it says on the website (17 and above arent supported yet) so I am very confused
Re: Could not run phased build action using connection to Gradle distribution [message #1848446 is a reply to message #1843161] Thu, 02 December 2021 04:41 Go to previous message
Eclipse UserFriend
Buildship does its Gradle stuff from Eclipse - so the limitation might be caused by what JDK Eclipse is running upon (as opposed to what the project you are building will be using).

Try closing Eclipse and editing the eclipse.ini file to point to a Java 16 JDK
Previous Topic:Eclipse CDT Integeration?
Next Topic:No Gradle Tasks appearing under projects in eclipse
Goto Forum:
  


Current Time: Sun Jun 08 05:43:42 EDT 2025

Powered by FUDForum. Page generated in 0.03704 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top