rubensousa / DpadRecyclerView

A RecyclerView built for Android TV with Compose in mind and as a replacement for Leanback's BaseGridView.
https://rubensousa.github.io/DpadRecyclerView/
Apache License 2.0
135 stars 17 forks source link

Crash when app:layoutManager is set in XML #246

Closed rubensousa closed 2 months ago

rubensousa commented 2 months ago
 Caused by: java.lang.IllegalStateException: Binary XML file line #7: Error creating LayoutManager com.rubensousa.dpadrecyclerview.layoutmanager.PivotLayoutManager
at androidx.recyclerview.widget.RecyclerView.createLayoutManager(RecyclerView.java:969)
at androidx.recyclerview.widget.RecyclerView.<init>(RecyclerView.java:871)
at com.rubensousa.dpadrecyclerview.DpadRecyclerView.<init>(DpadRecyclerView.kt:60)
at com.rubensousa.dpadrecyclerview.DpadRecyclerView.<init>(DpadRecyclerView.kt:56)
at com.rubensousa.dpadrecyclerview.DpadRecyclerView.<init>(Unknown Source:15)
... 32 more
Caused by: java.lang.NoSuchMethodException: <init> []
at java.lang.Class.getConstructor0(Class.java:2320)
at java.lang.Class.getConstructor(Class.java:1725)
at androidx.recyclerview.widget.RecyclerView.createLayoutManager(RecyclerView.java:966)
... 36 more
Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet, int, int]
at java.lang.Class.getConstructor0(Class.java:2320)
at java.lang.Class.getConstructor(Class.java:1725)
at androidx.recyclerview.widget.RecyclerView.createLayoutManager(RecyclerView.java:962)
... 36 more