java.lang.RuntimeException: You have to provide a ViewHolder with a constructor which takes a view!

GitHub | shubhamchaudhary | 10 months ago
  1. 0

    RuntimeException: You have to provide a ViewHolder with a constructor which takes a view!

    GitHub | 10 months ago | shubhamchaudhary
    java.lang.RuntimeException: You have to provide a ViewHolder with a constructor which takes a view!
  2. 0

    AbstractItem RuntimeException

    GitHub | 9 months ago | AndrazP
    java.lang.RuntimeException: You have to provide a ViewHolder with a constructor which takes a view!
  3. 0
    SMS Emulator caused this error. abortBroadcast only works with broadcasts sent through Context.sendOrderedBroadcast.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 2906#222517993

    GitHub | 8 months ago | FabianTerhorst
    rx.exceptions.OnErrorNotImplementedException: Please provide a constructor that takes a model as an argument
  6. 0
    I did this as root, and works dpkg --add-architecture i386 apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      You have to provide a ViewHolder with a constructor which takes a view!

      at com.mikepenz.fastadapter.items.AbstractItem$ReflectionBasedViewHolderFactory.create()
    2. com.mikepenz.fastadapter
      AbstractAdapter.onCreateViewHolder
      1. com.mikepenz.fastadapter.items.AbstractItem$ReflectionBasedViewHolderFactory.create(AbstractItem.java:343)
      2. com.mikepenz.fastadapter.items.AbstractItem.getViewHolder(AbstractItem.java:284)
      3. com.mikepenz.fastadapter.items.AbstractItem.getViewHolder(AbstractItem.java:233)
      4. com.mikepenz.fastadapter.FastAdapter$OnCreateViewHolderListenerImpl.onPreCreateViewHolder(FastAdapter.java:1253)
      5. com.mikepenz.fastadapter.FastAdapter.onCreateViewHolder(FastAdapter.java:309)
      6. com.mikepenz.fastadapter.AbstractAdapter.onCreateViewHolder(AbstractAdapter.java:128)
      6 frames
    3. Android v7
      RecyclerView.onLayout
      1. android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5464)
      2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4689)
      3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4599)
      4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988)
      5. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1384)
      6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)
      7. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
      8. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3003)
      9. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2881)
      10. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3265)
      10 frames
    4. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:15604)
      2. android.view.ViewGroup.layout(ViewGroup.java:4966)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      5. android.view.View.layout(View.java:15604)
      6. android.view.ViewGroup.layout(ViewGroup.java:4966)
      7. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      8. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      9. android.view.View.layout(View.java:15604)
      10. android.view.ViewGroup.layout(ViewGroup.java:4966)
      11. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      12. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      13. android.view.View.layout(View.java:15604)
      14. android.view.ViewGroup.layout(ViewGroup.java:4966)
      15. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      16. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      17. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      18. android.view.View.layout(View.java:15604)
      19. android.view.ViewGroup.layout(ViewGroup.java:4966)
      20. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      21. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      22. android.view.View.layout(View.java:15604)
      23. android.view.ViewGroup.layout(ViewGroup.java:4966)
      24. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      25. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      26. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      27. android.view.View.layout(View.java:15604)
      28. android.view.ViewGroup.layout(ViewGroup.java:4966)
      29. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      30. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      31. android.view.View.layout(View.java:15604)
      32. android.view.ViewGroup.layout(ViewGroup.java:4966)
      33. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      34. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      35. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      36. android.view.View.layout(View.java:15604)
      37. android.view.ViewGroup.layout(ViewGroup.java:4966)
      38. android.widget.FrameLayout.layoutChildren(FrameLayout.java:573)
      39. android.widget.FrameLayout.onLayout(FrameLayout.java:508)
      40. android.view.View.layout(View.java:15604)
      41. android.view.ViewGroup.layout(ViewGroup.java:4966)
      42. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2072)
      43. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1829)
      44. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1054)
      45. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5779)
      46. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
      47. android.view.Choreographer.doCallbacks(Choreographer.java:580)
      48. android.view.Choreographer.doFrame(Choreographer.java:550)
      49. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
      50. android.os.Handler.handleCallback(Handler.java:739)
      51. android.os.Handler.dispatchMessage(Handler.java:95)
      52. android.os.Looper.loop(Looper.java:135)
      53. android.app.ActivityThread.main(ActivityThread.java:5253)
      53 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:695)
      2 frames