Matt-MX/KtPaperGui

Incompatibility with Java

Metriximor opened this issue · 2 comments

I was trying to implement a GUI toggle button on java, however I get this issue:
imagem

Cannot access kotlin.jvm.functions.Function1

Since the readme describes compatibility with Java, I assume this is an unwanted side effect.

Update: This can be solved if we add the kotlin std jdk lib to our dependencies, in my case:
'implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.22'
solved it, but this is not ideal as it forces me to import a whole language standard lib for a small thing

I just realized that this is documented on the Wiki page, but there was no link to the wiki page from the readme.md, that's on me ahah.