jeudi 11 février 2016

Configure kotlin reflection, class.java doesn't work

So I update kotlin to 1.0.0-rc-1036, and reflection is broken.

This code worked for me in beta:

ApiInterface::class.java

but now I get unresolved reference .java.

I found at documentation that kotlin-reflect is not part of standard library (I guess they moved it recently, but i didn't find anything in release notes).

So I added compile and classpath 'org.jetbrains.kotlin:kotlin-reflect:1.0.0-rc-1036' but it's still not working. How to fix this?





Aucun commentaire:

Enregistrer un commentaire