简体   繁体   中英

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?

使用当前版本的Koltin,这是有效的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM