androidx.appcompat.app.AppCompatActivity doesn't implement LifecycleOwner

孤人 提交于 2019-11-28 02:01:23

As per this issue, this is a known issue if you use core-ktx:1.1.0 and appcompat:1.0.2, mixing alpha versions with stable releases. Upgrade to appcompat:1.1.0-alpha03 to fix the issue:

implementation 'androidx.appcompat:appcompat:1.1.0-alpha03'

It's your core library. Also general rule of thumb for production code, try to avoid using alpha. Update the following libraries and you should be fine.

implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.1'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!