qingmei2 / RxImagePicker

:rocket:RxJava2 and RxJava3 external support. Android flexible picture selector, provides the support for theme of Zhihu and WeChat (灵活的Android图片选择器,提供了知乎和微信主题的支持).
MIT License
1.2k stars 156 forks source link

大佬帮忙看看 报错 #59

Closed anzhuojinjie closed 5 years ago

anzhuojinjie commented 5 years ago
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.joey.loanmarket/com.qingmei2.rximagepicker_extension_zhihu.ui.ZhihuImagePickerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'androidx.lifecycle.Lifecycle$State androidx.lifecycle.Lifecycle.getCurrentState()' on a null object reference
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2514)

用微信或者知乎的主题打开相册都会报这个错,打开系统相册没有问题

qingmei2 commented 5 years ago

@anzhuojinjie

你的依赖库版本多少,项目本身迁移AndroidX了吗?请尝试fork这个项目并尝试运行demo,看看demo能否成功运行呢

请尽量描述你项目中的环境配置,方便我更快定位到错误的原因。 :handshake: