Jump to content

[1.9] Mod compile error (switch string)


NewDivide

Recommended Posts

Hey, i've been messing with player models in a new test mod, and i need to compile it to test if it works as intended,

I've used gradlew build in order to compile it, but it stops due to stuff related to switch of strings in 1.6,

 

Gradlew log:

http://pastebin.com/K1W35G9L

 

there was some information in other posts, but already tried and didnt work,

how do i solve this for 1.9?

Link to comment
Share on other sites

You need to compile for Java 7 or higher. Add this to your

build.gradle

(tells Gradle to compile for Java 7):

 

sourceCompatibility = 1.7
targetCompatibility = 1.7

 

Thanks!

I added it under dependecies, worked like a charm

 

 

dependencies {

(...)

sourceCompatibility = 1.7

targetCompatibility = 1.7

}

 

 

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.