java.lang.ClassNotFoundException: android.support.v4.view.ViewPager$SavedState

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

,
Expert tip

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \
     hello_world_from_pyspark.py {file location}

Solutions on the web

via GitHub by anshul1235
, 2 years ago
via GitHub by faridgh1991
, 3 months ago
android.support.v4.widget.NestedScrollView$SavedState
via Stack Overflow by Puneet Jain
, 2 years ago
via Stack Overflow by Sagar Yadav
, 1 year ago
android.support.v4.content.WakefulBroadcastReceiver
via Stack Overflow by Vlad Muresan
, 1 year ago
java.lang.ClassNotFoundException: android.support.v4.view.ViewPager$SavedState
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:309)
at java.lang.Class.forName(Class.java:273)
at android.os.Parcel.readParcelableCreator(Parcel.java:2281)
at android.os.Parcel.readParcelable(Parcel.java:2245)
at android.view.AbsSavedState.(AbsSavedState.java:57)
at android.support.v4.view.DirectionalViewPager$SavedState.(DirectionalViewPager.java:439)
at android.support.v4.view.DirectionalViewPager$SavedState$1.createFromParcel(DirectionalViewPager.java:429)
at android.support.v4.view.DirectionalViewPager$SavedState$1.createFromParcel(DirectionalViewPager.java:426)
at android.os.Parcel.readParcelable(Parcel.java:2250)
at android.os.Parcel.readValue(Parcel.java:2152)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:2546)
at android.os.Parcel.readSparseArray(Parcel.java:1874)
at android.os.Parcel.readValue(Parcel.java:2209)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2485)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:885)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1138)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1120)
at android.support.v4.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:1924)
at com.slidingmenu.lib.app.SlidingFragmentActivity.onCreate(SlidingFragmentActivity.java:21)

Users with the same issue

Once, 2 months ago
209 times, 3 months ago
50 times, 3 months ago
6 times, 5 months ago
6 times, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.