Skip to content
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

Closed
luciferChou opened this issue Dec 11, 2018 · 9 comments
Closed

not implement interface 'androidx.lifecycle.LifecycleOwner' #716

luciferChou opened this issue Dec 11, 2018 · 9 comments

Comments

@luciferChou
Copy link

我的使用环境是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。请尽快回复,谢谢

@GHYOWEE
Copy link

GHYOWEE commented Mar 8, 2019

你解决了嘛?我也遇到这个问题啦

@Mubly
Copy link

Mubly commented Mar 15, 2019

貌似我升级Android X后也遇到这问题

@githubityu
Copy link

androidx 遇到这个问题。

@ted23335921
Copy link

求大神解决啊。。。是不是这个插件没有兼容AndroidX啊?

@Mubly
Copy link

Mubly commented Mar 28, 2019

求大神解决啊。。。是不是这个插件没有兼容AndroidX啊?
我最终回退了,没用AndroidX

@ltyhome
Copy link

ltyhome commented Apr 4, 2019

自己在PictureBaseActivity中加上 private LifecycleRegistry mLifecycleRegistry = new LifecycleRegistry(this);然后注册一下生命周期就好了

@ltyhome
Copy link

ltyhome commented Apr 4, 2019

求大神解决啊。。。是不是这个插件没有兼容AndroidX啊?
我最终回退了,没用AndroidX

implementation 'com.github.ltyhome:PictureSelector:v2.2.3-androidx'

@ted23335921
Copy link

求大神解决啊。。。是不是这个插件没有兼容AndroidX啊?
我最终回退了,没用AndroidX

implementation 'com.github.ltyhome:PictureSelector:v2.2.3-androidx'
我是在项目中引用了 implementation 'androidx.core:core-ktx:1.1.0-alpha05'
然后就会出现之前的问题,后来发现项目中并没有实际用到这个库,然后就删除了,问题就解决了,不过还是谢谢。

@LuckSiege
Copy link
Owner

新版本支持android x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants