scwang90 / SmartRefreshLayout

🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。
https://segmentfault.com/a/1190000010066071
Apache License 2.0
24.95k stars 4.95k forks source link

一个空指针异常 #1544

Open a2012s opened 1 year ago

a2012s commented 1 year ago

java.lang.NullPointerException Attempt to invoke virtual method 'void android.view.View.resolveLayoutParams()' on a null object reference com.scwang.smart.refresh.layout.SmartRefreshLayout.onLayout(SmartRefreshLayout.java:651)

使用的是这个版本: implementation 'io.github.scwang90:refresh-layout-kernel:2.0.6' //核心必须依赖 implementation 'io.github.scwang90:refresh-header-classics:2.0.6' //经典刷新头 // implementation 'com.scwang.smart:refresh-header-radar:2.0.3' //雷达刷新头 // implementation 'com.scwang.smart:refresh-header-falsify:2.0.3' //虚拟刷新头 // implementation 'com.scwang.smart:refresh-header-material:2.0.3' //谷歌刷新头 // implementation 'com.scwang.smart:refresh-header-two-level:2.0.3' //二级刷新头 // implementation 'com.scwang.smart:refresh-footer-ball:2.0.3' //球脉冲加载 implementation 'io.github.scwang90:refresh-footer-classics:2.0.6' //经典加载