etsy/AndroidStaggeredGrid

incorrectly overrides package-private method with same name

Opened this issue · 13 comments

I met this problem,

by Log Tag:dalvikvm
method Lcom/etsy/android/grid/ExtendableListView;.fillGap incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;
method Lcom/etsy/android/grid/ExtendableListView;.getFooterViewsCount incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;
method Lcom/etsy/android/grid/ExtendableListView;.getHeaderViewsCount incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;
method Lcom/etsy/android/grid/ExtendableListView;.invokeOnItemScrollListener incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;
method Lcom/etsy/android/grid/ExtendableListView;.rememberSyncState incorrectly overrides package-private method with same name in Landroid/widget/AdapterView;
method Lcom/etsy/android/grid/ExtendableListView;.reportScrollStateChange incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;

May I ask how to solve this problem.

Android SDK 4.4.2(API 19)
JDK:1.7

This issue (with fillGap) causes crashes on Android 5.0 when using support v7:

java.lang.AbstractMethodError: abstract method "void android.widget.AbsListView.fillGap(boolean)" at android.widget.AbsListView.trackMotionScroll(AbsListView.java:4968) at android.widget.AbsListView.onGenericMotionEvent(AbsListView.java:4008) at android.view.View.dispatchGenericMotionEventInternal(View.java:8493) at android.view.View.dispatchGenericMotionEvent(View.java:8474) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchGenericMotionEvent(PhoneWindow.java:2322) at com.android.internal.policy.impl.PhoneWindow.superDispatchGenericMotionEvent(PhoneWindow.java:1702) at android.app.Activity.dispatchGenericMotionEvent(Activity.java:2775) at android.support.v7.app.ActionBarActivityDelegateICS$WindowCallbackWrapper.dispatchGenericMotionEvent(ActionBarActivityDelegateICS.java:278) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchGenericMotionEvent(PhoneWindow.java:2289) at android.view.View.dispatchPointerEvent(View.java:8580) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4021) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3887) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3449) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3502) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3468) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3578) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3476) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3635) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3449) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3502) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3468) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3476) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3449) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5701) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5675)

I got the same error as well

me too. Thinking about switching to recyclerview.

I have also encountered this error, and googled it to find this page. It seems to be intermittent and related to the StaggeredView

Apparently the issue may have to do with how you scroll on the emulator and doesn't happen on the device. From a student in the Android bootcamp we run:

This appears to be only present when not dragging and moving on the simulator, but swiping with the trackpad. I don't have a phone to test this out on, but it works perfectly fine with a click + drag.

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7 when trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone manage to get a solution? please share it with us if so, thanks

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García notifications@github.com wrote:

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7 when
trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone manage
to get a solution? please share it with us if so, thanks


Reply to this email directly or view it on GitHub
#158 (comment)
.

sorry tnguyenquy but what is Nathan's answer? i can't find it here in this
issue board...

On Wed, Mar 11, 2015 at 4:30 PM, tnguyenquy notifications@github.com
wrote:

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García notifications@github.com
wrote:

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7 when
trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone
manage
to get a solution? please share it with us if so, thanks


Reply to this email directly or view it on GitHub
<
#158 (comment)

.


Reply to this email directly or view it on GitHub
#158 (comment)
.

See below:

Apparently the issue may have to do with how you scroll on the emulator and
doesn't happen on the device. "This appears to be only present when not
dragging and moving on the simulator, but swiping with the trackpad. I
don't have a phone to test this out on, but it works perfectly fine with a
click + drag."

On Wed, Mar 11, 2015, 9:56 AM Hugo García notifications@github.com wrote:

sorry tnguyenquy but what is Nathan's answer? i can't find it here in this
issue board...

On Wed, Mar 11, 2015 at 4:30 PM, tnguyenquy notifications@github.com
wrote:

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García notifications@github.com
wrote:

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7 when
trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone
manage
to get a solution? please share it with us if so, thanks


Reply to this email directly or view it on GitHub
<

#158 (comment)

.


Reply to this email directly or view it on GitHub
<
#158 (comment)

.


Reply to this email directly or view it on GitHub
#158 (comment)
.

ok it seems the issue is not the same for me because my problem is
happening using a device, i think maybe i should open a new issue... thanks!

On Wed, Mar 11, 2015 at 4:57 PM, tnguyenquy notifications@github.com
wrote:

See below:

Apparently the issue may have to do with how you scroll on the emulator and
doesn't happen on the device. "This appears to be only present when not
dragging and moving on the simulator, but swiping with the trackpad. I
don't have a phone to test this out on, but it works perfectly fine with a
click + drag."

On Wed, Mar 11, 2015, 9:56 AM Hugo García notifications@github.com
wrote:

sorry tnguyenquy but what is Nathan's answer? i can't find it here in
this
issue board...

On Wed, Mar 11, 2015 at 4:30 PM, tnguyenquy notifications@github.com
wrote:

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García notifications@github.com
wrote:

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7
when
trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone
manage
to get a solution? please share it with us if so, thanks


Reply to this email directly or view it on GitHub
<

#158 (comment)

.


Reply to this email directly or view it on GitHub
<

#158 (comment)

.


Reply to this email directly or view it on GitHub
<
#158 (comment)

.


Reply to this email directly or view it on GitHub
#158 (comment)
.

hey @hugogz I'm having the same problem and with a device too! It is just a particular moviment on scrolling the screen to get this error :/ any other gesture works fine

I can confirm, this issue is only with trackpad, if u scroll holding click and swipe, it swipes flawlessly

This helped me with this issue, maybe will be useful for someone else:

  1. Open the Settings or Preferences dialog: On Windows or Linux, select File > Settings from the menu bar. On Mac OSX, select Android Studio > Preferences from the menu bar.
  2. Navigate to Build, Execution, Deployment > Instant Run.
  3. Uncheck the box next to Restart activity on code changes.
  4. Choose File > Invalidate Caches / Restart...
  5. Rebuild your project