CymChad / CymChad/BaseRecyclerViewAdapterHelper

ClassCastException

Open
#3,593 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
24.6k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

项目用的旧版,2.x,想用databinding,起初升级3.x,项目全报错,查了查决定放弃。
用2.x自己写了viewhoder ,又崩溃,java.lang.ClassCastException: com.chad.library.adapter.base.BaseViewHolder cannot be cast to
看了一下午issues , 混淆,内部类,静态外部类,各种方法都试过,还是崩溃。
一下午时间没了,决定放弃,不用databinding了,有好的解决办法的留个言,谢谢,等不忙了再试试,今天一下午脑袋都崩溃了。。。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the 2.x databinding setup and custom ViewHolder described in the issue, then reproduce the reported ClassCastException using the available project configuration. No file, test, or entry point is provided, so completion would require a minimal reproducible case and a confirmed supported configuration or a clearly documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.