zhanghai / AndroidFastScroll

Fast scroll for Android RecyclerView and more
https://play.google.com/store/apps/details?id=me.zhanghai.android.fastscroll.sample
Apache License 2.0
698 stars 64 forks source link

Crash due to old `AppCompat` Library #49

Closed Iamlooker closed 1 year ago

Iamlooker commented 2 years ago

Expected Behavior

Should run flawlessly and show a fast scroller.

Actual Behavior

Crash on open the screen with the fast scroller.

Steps to Reproduce the Problem

  1. Add this library to any project with appcompat:1.6.0-rc01
  2. Run the app

Specifications

I am just guessing that the issue is with AppCompat versioning because I encountered this issue after updating to latest library version

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/graphics/drawable/DrawableWrapper;
    at me.zhanghai.android.fastscroll.FastScrollerBuilder.useDefaultStyle(FastScrollerBuilder.java:123)
    at me.zhanghai.android.fastscroll.FastScrollerBuilder.<init>(FastScrollerBuilder.java:61)
zhanghai commented 2 years ago

That's because of aosp/2120177. For now you can get a ToT build of this library with Jitpack, while I'll release a new version when AppCompat 1.6.0 gets a stable release.

zhanghai commented 1 year ago

Fixed in 1.1.9.