本文介绍了NoClassDefFoundError:android.support.v7.widget.helper.ItemTouchHelper $ 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建滑动以在RecyclerView上删除,结果是当机:

Hi I want to create swipe to delete on RecyclerView the result is a crash:

看看build.gradle,我导入了所有需要的库.在代码中,我可以使用ItemTouchHelper类,但是当我想滑动项目时会崩溃.

Look at the build.gradle, I imported all the libs requeired. In code I'm able to use ItemTouchHelper class but when i want to swipe an item it crashes.

build.gradle

compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:recyclerview-v7:25.0.0'
compile 'com.android.support:cardview-v7:25.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.android.support:support-v13:25.0.0'
compile 'com.android.support:design:25.0.0'

崩溃:

推荐答案

几天前就解决了这个问题.就我而言,它是通过将所有 com.android.support:*依赖项从25.3.1更新到 26.0.0 来解决的.并确保它们都使用相同的版本.希望能帮助到别人.

Faced with this problem several days ago.In my case it was fixed by updating all com.android.support:* dependencies from 25.3.1 to 26.0.0. And make sure they all using the same version.Hope it will help someone.

这篇关于NoClassDefFoundError:android.support.v7.widget.helper.ItemTouchHelper $ 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 21:27