本次总结错误:
- SwiperefreshLayout + Recyclerview 刷新数据出现Inconsistency detected异常
- You must not call setTag() on a view Glide is targeting
- Retrofit2 @DELETE 不能使用@Body问题的解决办法
- java.lang.IllegalStateException: commit already called
java.lang.IllegalStateException: commit already called错误
FragmentTransaction ft = fragmentManager.beginTransaction();
情景:将FragmentTransaction 设置成全局变量,多次调用ft.commit()
,则会提示出现java.lang.IllegalStateException: commit already called
错误。
解决方法:将FragmentTransaction设置成局部变量。
参考文献
Retrofit踩坑之Delete请求
当RecyclerView遇到Inconsistency detected崩溃时
Error “You must not call setTag() on a view Glide is targeting” when use Glide