I'd like to import Java8 projects to my workspace. When I import them, I receive the following error message:
Loading Gradle project preview failed due to an error in the referenced Gradle build.
Could not fetch model of type 'GradleBuild' using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.8-rc-1-bin.zip'.
Build file '/home/PROJECT/git/PROJECT/libraries/build.gradle' line: 1
A problem occurred evaluating root project 'libraries'.
java.lang.UnsupportedClassVersionError: com/PROJECT/gradle/versioning/VersioningPlugin : Unsupported major.minor version 52.0
com/PROJECT/gradle/versioning/VersioningPlugin : Unsupported major.minor version 52.0
I set the Java compliance level to 1.8
:
But still I get this error. My installed Java version is (java -version
):
openjdk version "1.8.0_45-internal"
OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)
In my opinion everything is as it should be,... So what's wrong?
EDIT:
My execution environment has the Java8-Version:
All build path variables point at Java8: