Compatibility issue(?) #112
-
I am new to this field (game development) and not very experienced in working with java. I do everything following the example of the author, Mystic wood, I watch videos on his YouTube channel for the old version of fleks, and in parallel I try to transfer to the new one myself (I know that there is code on the git already from the new versions). in general, I came across an incompatibility problem, As indicated in the documentation of the 2x version, I have two ways to do family filtering:
But both of these cases lead to a problem:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi You need to update the gradle files properly to set bytecode level to 11 instead of 8. I cannot remember the lines and will add them later and also add this info to the wiki. But you will find them in the commits in the projects mentioned above. The commits that update Fleks to 2.4.. Manually changing it in the IDE won't work. At least it did not work for me. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply.
After that, the error remains underlined, but the application starts. To remove it, it came to manually remove the dependency from gradle core, build, return dp and build again. Gradle clean -> build doesn't help Thank you, the issue is resolved UP: At the same time, in file->project structure -> sdk should have the 11th version |
Beta Was this translation helpful? Give feedback.
Great that you figured it out yourself. I also tried to create a new project now from scratch using the latest version of gdx-liftoff.
The things I changed after the project was created:
fleksVersion
of 2.4 togradle.properties
api "io.github.quillraven.fleks:Fleks:$fleksVersion"
to build.gradle of thecore
projectFile -> Project Structure -> Project Settings -> Project -> SDK
. It must be at least Java 11 SDKThat worked for me since gdx-liftoff is now already creating projects with Java 11. I also had a look at the files and following parts are important:
build.gradle
: so…