I cannot figure out how to import and use JsInterop in a LibGDX project.
My GWT version in html build.gradle
is correct:
gwt {
gwtVersion='2.8.0'
...
In project's build.gradle
:
project(":html") {
apply plugin: "gwt"
...
dependencies {
...
compile "com.google.jsinterop:jsinterop-annotations:1.0.1"
}
}
Still I cannot compile, I get errors:
error: package jsinterop.annotations does not exist
error: cannot find symbol class JsType
I have read about the generateJsInteropExports
flag, I tried to put it in different places (maybe wrong ones?), did not work either.
Am I missing something?