Kotlin: Unresolved local class when using BroadcastReceiver in Activity

  • Android,Kotlin,BroadcastReceiver,Activity,

编译时异常日志:

Error:java.lang.UnsupportedOperationException: Unresolved local class: com/myproject/activities/BaseActivity$broadcastReceiver$1
at org.jetbrains.kotlin.descriptors.NotFoundClasses$classes$1.invoke(NotFoundClasses.kt:44)
at org.jetbrains.kotlin.descriptors.NotFoundClasses$classes$1.invoke(NotFoundClasses.kt:32)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunction.invoke(LockBasedStorageManager.java:408)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$MapBasedMemoizedFunctionToNotNull.invoke(LockBasedStorageManager.java:483)
at org.jetbrains.kotlin.descriptors.NotFoundClasses.getClass(NotFoundClasses.kt:101)

阅读原文 : Kotlin: Unresolved local class when using BroadcastReceiver in Activity https://www.e-learn.cn/content/wangluowenzhang/681639

- EOF -

本文链接 https://spacepage.top/archives/2019.09.04-Kotlin-Unresolved-local-class-BroadcastReceiver.html,欢迎转载,转载请注明出处。

友情链接
网站统计
  • 网站已运行:217天
  • 文章总数:66 篇