-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not implement interface 'androidx.lifecycle.LifecycleOwner' #716
Comments
你解决了嘛?我也遇到这个问题啦 |
貌似我升级Android X后也遇到这问题 |
androidx 遇到这个问题。 |
求大神解决啊。。。是不是这个插件没有兼容AndroidX啊? |
|
自己在PictureBaseActivity中加上 private LifecycleRegistry mLifecycleRegistry = new LifecycleRegistry(this);然后注册一下生命周期就好了 |
implementation 'com.github.ltyhome:PictureSelector:v2.2.3-androidx' |
|
新版本支持android x |
我的使用环境是compileSdkVersion 28,使用你们的库时。发生如下bug
Class 'com.luck.picture.lib.PictureSelectorActivity' does not implement interface 'androidx.lifecycle.LifecycleOwner' in call to 'androidx.lifecycle.Lifecycle androidx.lifecycle.LifecycleOwner.getLifecycle()' (declaration of 'androidx.lifecycle.LiveData' appears in /data/app/com.tianyulan.www.junaworld-ts9WFKUdYJrsOGWkOzp2dQ==/split_lib_dependencies_apk.apk)
at androidx.lifecycle.LiveData.observe(LiveData.java:172)
麻烦帮忙看看是什么bug.谢谢(我项目已经迁移到androidx,各个support里的内容已经移到androidx)。但只要一调用就发生上面那个bug。请尽快回复,谢谢
The text was updated successfully, but these errors were encountered: