Reputation: 45
It gives the error
What went wrong: A problem occurred evaluating root project 'test'.
com/github/jtakakura/gradle/plugins/robovm/RoboVMPlugin : Unsupported major.minor version 51.0
BUILD FAILED
How can I fix this?
Upvotes: 2
Views: 2192
Reputation:
I had the same problem. I solved just disabling Desktop, iOS, and HTML options. So you have to generate Android version only.
Upvotes: 2
Reputation: 417
You see this error because you do not have a JDK of 7 or above installed. The answer being listed here.
I came across the same issue when I had openjdk-7-jdk
installed on my Debian system.
To install Oracle Java 7 on Debian and derivatives:
sudo echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee /etc/apt/sources.list.d/webupd8team-java.list
sudo echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java7-installer
Upvotes: 1