在某些android设备中,出现此错误。 我在我的Play商店应用发布控制台中选中了这个
原因:java.lang.RuntimeException:
at android.os.Parcel.readValue (Parcel.java:2849)
at android.os.Parcel.readSparseArrayInternal (Parcel.java:3220)
at android.os.Parcel.readSparseArray (Parcel.java:2432)
at android.os.Parcel.readValue (Parcel.java:2827)
at android.os.Parcel.readArrayMapInternal (Parcel.java:3139)
at android.os.BaseBundle.initializeFromParcelLocked (BaseBundle.java:273)
at android.os.BaseBundle.unparcel (BaseBundle.java:226)
at android.os.Bundle.getSparseParcelableArray (Bundle.java:1009)
at androidx.fragment.app.FragmentManagerImpl.moveToState (FragmentManagerImpl.java:763)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState (FragmentManagerImpl.java:1227)
at androidx.fragment.app.FragmentManagerImpl.moveToState (FragmentManagerImpl.java:1293)
at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange (FragmentManagerImpl.java:2612)
at androidx.fragment.app.FragmentManagerImpl.dispatchCreate (FragmentManagerImpl.java:2566)
at androidx.fragment.app.FragmentController.dispatchCreate (FragmentController.java:235)
at androidx.fragment.app.FragmentActivity.onCreate (FragmentActivity.java:303)
at androidx.appcompat.app.AppCompatActivity.onCreate (AppCompatActivity.java:81)
at com.sankhep.news.view.MainActivity.onCreate (MainActivity.kt:29)
at android.app.Activity.performCreate (Activity.java:7314)
at android.app.Activity.performCreate (Activity.java:7305)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2931)