CymChad / CymChad/BaseRecyclerViewAdapterHelper
打开你的项目编译的点击任何一个示例都报错
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
Process: com.chad.baserecyclerviewadapterhelper, PID: 16938
java.lang.NoSuchMethodError: No virtual method getBindingAdapterPosition()I in class Lcom/chad/library/adapter/base/viewholder/BaseViewHolder; or its super classes (declaration of 'com.chad.library.adapter.base.viewholder.BaseViewHolder' appears in /data/app/~~P2UZzNhpW-FAgKLtRozK3g==/com.chad.baserecyclerviewadapterhelper-TWoqU1l2BU0wjSPLYFF0-w==/base.apk)
at com.chad.library.adapter.base.BaseQuickAdapter.bindViewClickListener$lambda-7$lambda-6(BaseQuickAdapter.kt:495)
at com.chad.library.adapter.base.BaseQuickAdapter.lambda$aqWf9Mix2Hshed6QsGcdRVGlHL8(Unknown Source:0)
at com.chad.library.adapter.base.-$$Lambda$BaseQuickAdapter$aqWf9Mix2Hshed6QsGcdRVGlHL8.onClick(Unknown Source:4)
at android.view.View.performClick(View.java:7509)
at android.view.View.performClickInternal(View.java:7486)
at android.view.View.access$3600(View.java:841)
at android.view.View$PerformClick.run(View.java:28720)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8060)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read BaseQuickAdapter.kt around line 495 and inspect BaseViewHolder, focusing on the missing getBindingAdapterPosition() method shown in the stack trace. Reproduce the failure by opening the project and clicking an example; done means the examples no longer throw NoSuchMethodError when clicked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100