有没有人见过这个错误?应用程序在打开时立即崩溃,因为它无法启动默认活动.
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以查看导致您的应用挂起的原因.也许你在某个地方有一个无限循环.另外,检查除此之外是否还有其他任何错误消息.