AndroidStaggeredGrid icon indicating copy to clipboard operation
AndroidStaggeredGrid copied to clipboard

incorrectly overrides package-private method with same name

Open RunCross opened this issue 9 years ago • 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 <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19" />

RunCross avatar Oct 29 '14 03:10 RunCross

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)

Naitbit avatar Nov 28 '14 14:11 Naitbit

I got the same error as well

tnguyenquy avatar Feb 04 '15 19:02 tnguyenquy

me too. Thinking about switching to recyclerview.

Frank1234 avatar Feb 13 '15 15:02 Frank1234

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

asweigart avatar Feb 15 '15 21:02 asweigart

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.

nesquena avatar Feb 16 '15 06:02 nesquena

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

hugogz avatar Mar 11 '15 14:03 hugogz

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García [email protected] 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 https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78278863 .

tnguyenquy avatar Mar 11 '15 15:03 tnguyenquy

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 [email protected] wrote:

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García [email protected] 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 < https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78278863

.

— Reply to this email directly or view it on GitHub https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78286545 .

hugogz avatar Mar 11 '15 15:03 hugogz

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 [email protected] 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 [email protected] wrote:

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García [email protected] 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 <

https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78278863

.

— Reply to this email directly or view it on GitHub < https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78286545

.

— Reply to this email directly or view it on GitHub https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78292193 .

tnguyenquy avatar Mar 11 '15 15:03 tnguyenquy

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 [email protected] 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 [email protected] 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 [email protected] wrote:

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García [email protected] 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 <

https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78278863

.

— Reply to this email directly or view it on GitHub <

https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78286545

.

— Reply to this email directly or view it on GitHub < https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78292193

.

— Reply to this email directly or view it on GitHub https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78292492 .

hugogz avatar Mar 11 '15 15:03 hugogz

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

JGeraldoLima avatar Aug 05 '15 07:08 JGeraldoLima

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

namanjain1993 avatar Sep 17 '16 16:09 namanjain1993

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

castasat avatar May 22 '19 12:05 castasat