Openfl6 build error: Gradle and java sourceCompatibility 1.6

With openfl 6.0.1 / lime 5.3.0 / openjdk version “1.8.0_131”

openfl create BunnyMark (or DisplayingABitmap) && openfl test android
fails for me with:

gradlew stacktrace:
Compiling with source level 1.6 and target level 1.6.
....
BunnyMark/Export/android/bin/app/src/main/java/org/haxe/lime/GameActivity.java:79: error: method does not override or implement a method from a supertype
        @Override

Changing to openfl 4.9.2 / lime 4.0.3 and it works.
To make it more strange, my old projects still work with openfl6.

Is there a config/template where i can force the source/target version?

I think this may be the fix you need:

Planning to release a minor version soon

1 Like