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

后端 未结 10 1226
予麋鹿
予麋鹿 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条回答
  •  萌比男神i
    2020-12-15 17:34

    I copied the class from other project and forgot to change the class package name. when I changed, it fixed

提交回复
热议问题