Swift99
Swift99

Reputation: 45

libGDX build fails and does not let me build first file

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

Answers (2)

user1418225
user1418225

Reputation:

I had the same problem. I solved just disabling Desktop, iOS, and HTML options. So you have to generate Android version only.

enter image description here

Upvotes: 2

AWippler
AWippler

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

Related Questions