lucasr / twoway-view

[DEPRECATED] RecyclerView made simple
5.23k stars 1.02k forks source link

java.lang.IncompatibleClassChangeError: org.lucasr.twowayview.ClickItemTouchListener$ItemClickGestureDetector #271

Open MustafaAdil opened 8 years ago

MustafaAdil commented 8 years ago

I'm facing this problem:

java.lang.IncompatibleClassChangeError: org.lucasr.twowayview.ClickItemTouchListener$ItemClickGestureDetector

How to solve it?

kenneth2008 commented 8 years ago

266 has answer.

compile 'com.android.support:support-v4:23.1.1' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0'

compile ('com.github.lsjwzh.RecyclerViewPager:lib:v1.1.0'){ // Avoid pulling to latest 23.2.0 // https://code.google.com/p/android/issues/detail?id=72430 exclude group: 'com.android.support', module:'support-v4' exclude group: 'com.android.support', module:'recyclerview-v7' }

Some library will include the new support library. Found them, and you will see the external library list has a 23.1.0 support library.

seerazz commented 7 years ago

Hi i face the same problem too, just use this class to solve the issue https://gist.github.com/nesquena/231e356f372f214c4fe6