gpt4 book ai didi

Android 安全异常 : package is frozen

转载 作者:可可西里 更新时间:2023-11-01 19:06:43 31 4
gpt4 key购买 nike

有没有人见过这个错误?应用程序在打开时立即崩溃,因为它无法启动默认 Activity 。

Failure starting process com.xyz
java.lang.SecurityException: Package com.xyz is currently frozen!
at com.android.server.pm.PackageManagerService.checkPackageStartable(PackageManagerService.java:3610)
at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3791)
at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3751)
at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3640)
at com.android.server.am.ActivityStackSupervisor.startSpecificActivityLocked(ActivityStackSupervisor.java:1582)
at com.android.server.am.ActivityStack.resumeTopActivityInnerLocked(ActivityStack.java:2663)
at com.android.server.am.ActivityStack.resumeTopActivityUncheckedLocked(ActivityStack.java:2215)
at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:2066)
at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:2056)
at com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:5270)
at com.android.server.am.ActivityManagerService.removeProcessLocked(ActivityManagerService.java:6645)
at com.android.server.am.ActivityManagerService.killPackageProcessesLocked(ActivityManagerService.java:6289)
at com.android.server.am.ActivityManagerService.forceStopPackageLocked(ActivityManagerService.java:6421)
at com.android.server.am.ActivityManagerService$MainHandler.handleMessage(ActivityManagerService.java:2079)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)

最佳答案

您的应用程序可能会遇到“卡住帧”(参见此处:https://developer.android.com/topic/performance/vitals/frozen.html)。如果应用程序中框架的某些部分加载时间超过 700 毫秒,则基本上会发生这种情况。我建议查看 Android Vitals 以查看导致您的应用挂起的原因。也许你在某个地方有一个无限循环。此外,检查是否还有除此之外的任何其他错误消息。

关于Android 安全异常 : package is frozen,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47643030/

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