滑动以从 Recyclerview 中删除项目时应用程序崩溃。错误日志如下。它以前工作现在更新到 com.android.support:recyclerview-v7:23.1.0 和 recyclerview-animators-1.2.2.jar。现在它崩溃了,请帮助我。提前致谢。
FATAL EXCEPTION: main Process: com.timecard, PID: 2876 java.lang.AbstractMethodError: abstract method not implemented at android.support.v7.widget.RecyclerView$ItemAnimator.animateChange(RecyclerView.java) at android.support.v7.widget.RecyclerView.animateChange(RecyclerView.java:3062) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2924) at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3071) at android.view.View.layout(View.java:14817) at android.view.ViewGroup.layout(ViewGroup.java:4631) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671) at
最佳答案
我的团队就在昨天遇到了类似的问题。解决方案是将项目中使用的 recyclerview-animators 更新到最新版本 2.0.1:
compile 'jp.wasabeef:recyclerview-animators:2.0.1'
显然这是一个已知问题,因为开发人员也有 mentioned关于旧版本与支持库 23.0.1 的不兼容性。
关于Android RecyclerView : Abstract method not implemented,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33729806/