Kotlin Foo::class.java “Unresolved Reference: Java” error

后端 未结 10 1149
予麋鹿
予麋鹿 2020-12-15 17:11

I am trying to convert my Java code of HomePage.class to Kotlin. I am following the instructions on Kotlin.org:

getClass()

10条回答
  •  有刺的猬
    2020-12-15 17:44

    In my case reducing version of kotlin fixed the issue

    Change

    ext.kotlin_version = '1.3.21'
    

    To

    ext.kotlin_version = '1.3.11'
    

提交回复
热议问题