java.lang.ClassNotFoundException

android.support.v4.view.ViewPager$SavedState

Samebug tips2

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}"

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Stack trace

  • 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.<init>(AbsSavedState.java:57) at android.view.View$BaseSavedState.<init>(View.java:20155) at android.support.v4.view.DirectionalViewPager$SavedState.<init>(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.support.v4.os.ParcelableCompatCreatorHoneycombMR2.createFromParcel(ParcelableCompatHoneycombMR2.java:40) 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.os.Bundle.getSparseParcelableArray(Bundle.java:822) 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 android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:268) at com.slidingmenu.lib.app.SlidingFragmentActivity.onCreate(SlidingFragmentActivity.java:21)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

69 times, 4 days ago
2 times, 1 month ago
Once, 8 months ago
422 times, 11 months ago
Once, 21 hours ago
468 more bugmates