Back

How to Fix Major Version Mismatch Warnings in Gradle

When you see something like the below, what do you do?

major version 51 is newer than 50, the highest major version supported by this compiler.

Simply go update your JDK.
Also check that your JAVA_HOME is set correctly in your ~/.bash_profile:

export JAVA_HOME=$(/usr/libexec/java_home)

Don’t forget to close your terminal or at least source ~/.bash_profile once you change it!

 

SEE OUR JOB OPENINGS

Riley Mills
Riley Mills