3

我在 Play 商店中开发了 android 应用程序。我从很多用户那里收到活页夹错误,我不知道如何解决。有人可以帮助我吗?这是我的日志。我正在使用 google play 服务,同时也在使用pro-guard.

    Fatal Exception: java.lang.RuntimeException: android.os.DeadObjectException
       at android.content.pm.PackageInstaller.getAllSessions(PackageInstaller.java:406)
       at com.google.android.gms.common.zze.zzl(Unknown Source)
       at com.google.android.gms.common.zzc.isGooglePlayServicesAvailable(Unknown Source)
       at com.google.android.gms.common.GoogleApiAvailability.getInstance(Unknown Source)
       at com.google.android.gms.internal.zzpy.zzapv(Unknown Source)
       at com.google.android.gms.internal.zzpy.zzc(Unknown Source)
       at com.google.android.gms.internal.zzpv.begin(Unknown Source)
       at com.google.android.gms.internal.zzqa.zzc(Unknown Source)
       at com.google.android.gms.internal.zzpp.onConnected(Unknown Source)
       at com.google.android.gms.common.internal.zzk$1.onConnectionSuspended(Unknown Source)
       at com.google.android.gms.common.internal.zzd$zzd.handleMessage(Unknown Source)
       at android.os.Handler.dispatchMessage(Handler.java:111)
       at android.os.Looper.loop(Looper.java:207)
       at android.app.ActivityThread.main(ActivityThread.java:5740)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:766)
Caused by android.os.DeadObjectException
       at android.os.BinderProxy.transactNative(Binder.java)
       at android.os.BinderProxy.transact(Binder.java:511)
       at android.content.pm.IPackageInstaller$Stub$Proxy.getAllSessions(IPackageInstaller.java:360)
       at android.content.pm.PackageInstaller.getAllSessions(PackageInstaller.java:404)
       at com.google.android.gms.common.zze.zzl(Unknown Source)
       at com.google.android.gms.common.zzc.isGooglePlayServicesAvailable(Unknown Source)
       at com.google.android.gms.common.GoogleApiAvailability.getInstance(Unknown Source)
       at com.google.android.gms.internal.zzpy.zzapv(Unknown Source)
       at com.google.android.gms.internal.zzpy.zzc(Unknown Source)
       at com.google.android.gms.internal.zzpv.begin(Unknown Source)
       at com.google.android.gms.internal.zzqa.zzc(Unknown Source)
       at com.google.android.gms.internal.zzpp.onConnected(Unknown Source)
       at com.google.android.gms.common.internal.zzk$1.onConnectionSuspended(Unknown Source)
       at com.google.android.gms.common.internal.zzd$zzd.handleMessage(Unknown Source)
       at android.os.Handler.dispatchMessage(Handler.java:111)
       at android.os.Looper.loop(Looper.java:207)
       at android.app.ActivityThread.main(ActivityThread.java:5740)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:766)
4

1 回答 1

2

根据此文档,您遇到了一个错误,因为您正在调用的对象已死亡,因为它的托管进程不再存在。此外,正如该线程中所述,它通常发生在 go 端崩溃时。通常有用的错误日志(如果有的话)在android.os.DeadObjectException.

这篇SO 帖子可能会对您有所帮助:

覆盖您的服务的onDestroy()方法并观察导致它的事件流。如果你DeadObjectException没有通过这个方法就捕获了,你的服务应该已经被操作系统杀死了。

于 2016-10-08T06:56:28.243 回答