HumbleUI / Skija

Java bindings for Skia
Apache License 2.0
498 stars 34 forks source link

Java 8 doesn't work #61

Closed hvven closed 12 months ago

hvven commented 12 months ago

https://github.com/HumbleUI/Skija/assets/132185397/30f6de55-51e4-4a10-83a0-99b53e218c1b

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 12 months ago

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 12 months ago

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

hvven commented 12 months ago

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 12 months ago

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