HumbleUI/Skija

Java 8 doesn't work

Closed this issue · 4 comments

hvven commented
asdf.mp4

Windows 11 64 bit
Temurin jdk 8 (for both gradle and project settings)

This is probably a really dumb issue, and I'm probably missing something really important. I'm really sorry if that's the case.

I saw somewhere that Java 8 is supported, but I get this error. In the video it seems like I'm using coretto 8, though I tried it again with Temurin.

The project is just a default intellij java + gradle (kotlin dsl) project, I just added this line in the main function: Paint paint = new Paint()

this is the build.gradle.kts file:
asdf2

tonsky commented

Can you try it with plain javac/java? Works for me

Screenshot 2023-09-05 at 16 01 39

P.S. I wonder what makes you start new project in Java 8?

hvven commented

Thanks, that works. I can't really make with work with Gradle though, so I will try to figure it out.

hvven commented

I had to include these.

implementation("io.github.humbleui:skija-macos-x64:0.116.1")
implementation("io.github.humbleui:types:0.2.0")

I don't really know what I'm doing, but thanks so much for the terminal example!

tonsky commented

Weird — shared does include dependency on types, so it should be added transitively