robovm / robovm-gradle-plugin

RoboVM Gradle plugin
45 stars 24 forks source link

Unsupported version major.minor 51 #10

Closed milos1290 closed 10 years ago

milos1290 commented 10 years ago

Hi, when importing libgdx project into intellij i get this error. I'm running OS X with java 7 installed.

jtakakura commented 10 years ago

Hi, Did you try to run from Terminal? (see https://github.com/libgdx/libgdx/wiki/Gradle-on-the-Commandline#running-the-ios-project) I tested OS X 10.9.2 and Java version "1.7.0_51" and it worked fine.

agmcleod commented 10 years ago

@jtakakura Having the same issue. Running 10.9.2 OSX as well with the latest intelliJ. My terminal java version responds with java version "1.7.0_45". The command line for running the simulator ran fine, but I can't get the project imported into IntelliJ

jtakakura commented 10 years ago

Please clone and import this sample project, https://github.com/jtakakura/robovm-sample-ios-app into IntelliJ and confirm same error will be occured or not.

agmcleod commented 10 years ago

@jtakakura yeah same issue:

error

jtakakura commented 10 years ago

Please confirm your "Project SDK"("Configure > Project Defaults > Project Structure"). libgdx1

And set your Java 7 SDK if "No SDK" was selected like bellow image. libgdx2

I could confirm to import robovm sample project into IntelliJ IDEA. libgdx3

agmcleod commented 10 years ago

Yep that did the trick. Had no sdk selected as per your first screenshot.

both the robovm sample project and a generated libgdx project imported successfully.

milos1290 commented 10 years ago

Hi guys, Sorry for late response, i've managed to fix it by disabling robovm completely from Libgdx project, and enabling it after import. Even though i'm using java 7 i still had this problem