gpt4 book ai didi

android - 致命异常 : java. lang.IllegalStateException 没有从 INITIALIZED 下来的事件

转载 作者:行者123 更新时间:2023-12-03 13:24:28 26 4
gpt4 key购买 nike

不确定我在应用程序中更改了什么,但是在发布后我突然得到了这个无法追踪的堆栈跟踪(我更新了一些依赖项,但不确定是什么导致了它,因为我无法复制。

atal Exception: java.lang.IllegalStateException: no event down from INITIALIZED
at androidx.lifecycle.LifecycleRegistry.backwardPass(LifecycleRegistry.java:281)
at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:302)
at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:148)
at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:134)
at androidx.fragment.app.FragmentViewLifecycleOwner.handleLifecycleEvent(FragmentViewLifecycleOwner.java:62)
at androidx.fragment.app.Fragment.performDestroyView(Fragment.java:3130)
at androidx.fragment.app.FragmentStateManager.destroyFragmentView(FragmentStateManager.java:706)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1407)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1477)
at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1555)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1608)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3046)
at androidx.fragment.app.FragmentManager.dispatchDestroyView(FragmentManager.java:3018)
at androidx.fragment.app.Fragment.performDestroyView(Fragment.java:3128)
at androidx.fragment.app.FragmentStateManager.destroyFragmentView(FragmentStateManager.java:706)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1407)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1477)
at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1555)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1617)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2150)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2061)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1957)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3056)
at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2983)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:2923)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:562)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1324)
at androidx.fragment.app.FragmentManager.addAddedFragments(FragmentManager.java:2392)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2137)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2061)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1957)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3056)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2990)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:458)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:210)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1392)
at android.app.Activity.performStart(Activity.java:7338)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3172)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:186)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:171)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:148)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:76)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1988)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:232)
at android.app.ActivityThread.main(ActivityThread.java:7240)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:883)

最佳答案

issue的修复现在稳定在 androidx.fragment:fragment-ktx:1.3.0 .

关于android - 致命异常 : java. lang.IllegalStateException 没有从 INITIALIZED 下来的事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63240530/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com