我又一次在Google Play控制台ANR和Crushs中看到异常“ java.lang.IllegalStateException”。日志并没有让我知道这个最可恶的异常的来源。如果我的应用程序中没有有关该来源的位置的信息,我如何找到该错误的来源?这是我们的完整日志:
at android.support.v4.app.FragmentManagerImpl.checkStateLoss (FragmentManagerImpl.java)
at android.support.v4.app.FragmentManagerImpl.access$500 (FragmentManagerImpl.java)
or .access$600 (FragmentManagerImpl.java)
or .addFragment (FragmentManagerImpl.java)
or .allocBackStackIndex (FragmentManagerImpl.java)
or .animateRemoveFragment (FragmentManagerImpl.java)
or .attachController (FragmentManagerImpl.java)
or .beginTransaction (FragmentManagerImpl.java)
or .completeExecute (FragmentManagerImpl.java)
or .dispatchConfigurationChanged (FragmentManagerImpl.java)
or .dispatchCreateOptionsMenu (FragmentManagerImpl.java)
or .dispatchMultiWindowModeChanged (FragmentManagerImpl.java)
or .dispatchOnFragmentPreAttached (FragmentManagerImpl.java)
or .dispatchOnFragmentPreCreated (FragmentManagerImpl.java)
or .dispatchOnFragmentViewCreated (FragmentManagerImpl.java)
or .dispatchOptionsItemSelected (FragmentManagerImpl.java)
or .dispatchPrepareOptionsMenu (FragmentManagerImpl.java)
or .dump (FragmentManagerImpl.java)
or .enqueueAction (FragmentManagerImpl.java)
or .executeOpsTogether (FragmentManagerImpl.java)
or .executePostponedTransaction (FragmentManagerImpl.java)
or .findFragmentById (FragmentManagerImpl.java)
or .findFragmentByTag (FragmentManagerImpl.java)
or .getAnimationListener (FragmentManagerImpl.java)
or .getFragment (FragmentManagerImpl.java)
or .loadAnimation (FragmentManagerImpl.java)
or .makeFadeAnimation (FragmentManagerImpl.java)
or .makeOpenCloseAnimation (FragmentManagerImpl.java)
or .makeRemovedFragmentsInvisible (FragmentManagerImpl.java)
or .modifiesAlpha (FragmentManagerImpl.java)
or .moveToState (FragmentManagerImpl.java)
or .performPendingDeferredStart (FragmentManagerImpl.java)
or .popBackStack (FragmentManagerImpl.java)
or .popBackStackImmediate (FragmentManagerImpl.java)
or .popBackStackState (FragmentManagerImpl.java)
or .postponePostponableTransactions (FragmentManagerImpl.java)
or .putFragment (FragmentManagerImpl.java)
or .restoreAllState (FragmentManagerImpl.java)
or .setBackStackIndex (FragmentManagerImpl.java)
or .setRetaining (FragmentManagerImpl.java)
or .shouldRunOnHWLayer (FragmentManagerImpl.java)
or .throwException (FragmentManagerImpl.java)
at android.support.v4.app.BackStackRecord.add (BackStackRecord.java)
or .addOp (BackStackRecord.java)
or .bumpBackStackNesting (BackStackRecord.java)
or .commitInternal (BackStackRecord.java)
or .doAddOp (BackStackRecord.java)
or .dump (BackStackRecord.java)
or .expandOps (BackStackRecord.java)
or .generateOps (BackStackRecord.java)
or .interactsWith (BackStackRecord.java)
or .remove (BackStackRecord.java)
or .runOnCommitRunnables (BackStackRecord.java)
or .setOnStartPostponedListener (BackStackRecord.java)
at android.support.v4.app.BackStackRecord.commit (BackStackRecord.java)
or .detach (BackStackRecord.java)
or .executePopOps (BackStackRecord.java)
or .interactsWith (BackStackRecord.java)
or .isFragmentPostponed (BackStackRecord.java)
or .trackAddedFragmentsInPop (BackStackRecord.java)
at android.support.v4.app.FragmentTabHost.onAttachedToWindow (FragmentTabHost.java)
at android.view.View.dispatchAttachedToWindow (View.java:15576)
at android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3079)
at android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3086)
at android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3086)
at android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3086)
at android.view.ViewGroup.dispatchAttachedToWindow (ViewGroup.java:3086)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1747)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1462)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6965)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:907)
at android.view.Choreographer.doCallbacks (Choreographer.java:709)
at android.view.Choreographer.doFrame (Choreographer.java:644)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:893)
at android.os.Handler.handleCallback (Handler.java:836)
at android.os.Handler.dispatchMessage (Handler.java:103)
at android.os.Looper.loop (Looper.java:203)
at android.app.ActivityThread.main (ActivityThread.java:6255)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:924)