java.lang.NoClassDefFoundError: android.support.v7.widget.RecyclerView$SavedState

Stack Overflow | Ryan Harvard | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Error with RecyclerView in Android

    Stack Overflow | 9 months ago | Ryan Harvard
    java.lang.NoClassDefFoundError: android.support.v7.widget.RecyclerView$SavedState

    4 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      android.support.v7.widget.RecyclerView$SavedState

      at android.support.v7.widget.RecyclerView.onSaveInstanceState()
    2. Android v7
      RecyclerView.onSaveInstanceState
      1. android.support.v7.widget.RecyclerView.onSaveInstanceState(RecyclerView.java:1078)
      1 frame
    3. Android Platform
      ViewGroup.dispatchFreezeSelfOnly
      1. android.view.View.dispatchSaveInstanceState(View.java:14641)
      2. android.view.ViewGroup.dispatchFreezeSelfOnly(ViewGroup.java:3175)
      2 frames
    4. Android v7
      RecyclerView.dispatchSaveInstanceState
      1. android.support.v7.widget.RecyclerView.dispatchSaveInstanceState(RecyclerView.java:1109)
      1 frame
    5. Android Platform
      View.saveHierarchyState
      1. android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3161)
      2. android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3161)
      3. android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3161)
      4. android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3161)
      5. android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3161)
      6. android.view.View.saveHierarchyState(View.java:14624)
      6 frames
    6. Android
      PhoneWindow.saveHierarchyState
      1. com.android.internal.policy.impl.PhoneWindow.saveHierarchyState(PhoneWindow.java:2126)
      1 frame
    7. Android Platform
      Activity.onSaveInstanceState
      1. android.app.Activity.onSaveInstanceState(Activity.java:1456)
      1 frame
    8. Android Support v4
      FragmentActivity.onSaveInstanceState
      1. android.support.v4.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:564)
      1 frame
    9. Android v7
      AppCompatActivity.onSaveInstanceState
      1. android.support.v7.app.AppCompatActivity.onSaveInstanceState(AppCompatActivity.java:502)
      1 frame
    10. Android Platform
      ActivityThread.main
      1. android.app.Activity.performSaveInstanceState(Activity.java:1383)
      2. android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1286)
      3. android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4473)
      4. android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3845)
      5. android.app.ActivityThread.handleStopActivity(ActivityThread.java:3908)
      6. android.app.ActivityThread.access$1200(ActivityThread.java:177)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:145)
      10. android.app.ActivityThread.main(ActivityThread.java:5942)
      10 frames
    11. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    12. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
      2 frames