FabricMC / fabric-example-mod

Example Fabric mod
Creative Commons Zero v1.0 Universal
1.67k stars 945 forks source link

java mismatch error #164

Closed KrishnaAdityaSrivastava closed 2 years ago

KrishnaAdityaSrivastava commented 2 years ago

i am new to this modding stuff so I wanted to ask that in build.gradle from example everywhere java version is specified as 17 like sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 and I having issues that I need a higher java version for this mod to work so do i need to change these to 8 as i am using mc 1.16.1 which needs java 8 also i have already changed it in gradle.properties which dosent seem to work for me and even if i change it in build.gradle and run ./gradlew genSources it shows that "Build failed" and same for ./gradlew vscode so what should i do plz help :(