Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException: Wrong type! Position = -1 #52

Open
taishuhongye opened this issue Apr 10, 2020 · 2 comments
Open

java.lang.IllegalArgumentException: Wrong type! Position = -1 #52

taishuhongye opened this issue Apr 10, 2020 · 2 comments

Comments

@taishuhongye
Copy link

代码中没看到什么异常。没有getAdapter()方法的调用。可能是和kotlin或者mvvvm有冲突。
陈年bug了。求求您,辛苦一下,看看吧。

java.lang.IllegalArgumentException: Wrong type! Position = -1
at com.aspsine.irecyclerview.g.getItemViewType(WrapperAdapter.java:134)
at com.aspsine.irecyclerview.g.onViewAttachedToWindow(WrapperAdapter.java:101)
at android.support.v7.widget.RecyclerView.f(RecyclerView.java:7270)
at android.support.v7.widget.RecyclerView$5.addView(RecyclerView.java:855)
at android.support.v7.widget.ChildHelper.a(ChildHelper.java:107)
at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:8336)
at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:8294)
at android.support.v7.widget.LinearLayoutManager.a(LinearLayoutManager.java:1573)
at android.support.v7.widget.LinearLayoutManager.a(LinearLayoutManager.java:1517)
at android.support.v7.widget.LinearLayoutManager.a(LinearLayoutManager.java:1331)
at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1075)
at android.support.v7.widget.RecyclerView.a(RecyclerView.java:1832)
at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:5067)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1041)
at android.view.Choreographer.doCallbacks(Choreographer.java:847)
at android.view.Choreographer.doFrame(Choreographer.java:771)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1027)
at android.os.Handler.handleCallback(Handler.java:809)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7555)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)

@varunjain0888
Copy link

I am also facing same issue with Concat adapter

@gaoyangcr7
Copy link

facing same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants