前言
项目中需要用到上下拉刷新控件,选择的
SmartRefreshLayout在运行的闪退,错误日志如下:
Binary XML file line #97 in com.wnkp.ezp:layout/activity_file_customer_list: Error inflating class com.scwang.smart.refresh.layout.SmartRefreshLayout
Error inflating class com.scwang.smart.refresh.layout.SmartRefreshLayout
检查了一下Grade库,目前使用的版本是:
// SmartRefreshLayout上下拉刷新
implementation io.github.scwang90:refresh-layout-kernel:2.0.5
implementation io.github.scwang90:refresh-header-classics:2.0.5
implementation io.github.scwang90:refresh-footer-classics:2.0.5
问题解决
在gradle.properties文件中增加一下代码即可
android.enableJetifier=true

© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...
