gpt4 book ai didi

android - UrbanAirship 崩溃的 Android 应用程序

转载 作者:行者123 更新时间:2023-12-03 17:37:38 25 4
gpt4 key购买 nike

我在我的应用程序中使用 UrbanAirship 推送通知。但有时我的应用程序因 android.os.RemoteException 而崩溃。

原因:执行doInBackground()时出错

堆栈跟踪

0   java.lang.RuntimeException: An error occured while executing doInBackground()
1 at android.os.AsyncTask$3.done(AsyncTask.java:278)
2 at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
3 at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
4 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
5 at java.util.concurrent.FutureTask.run(FutureTask.java:137)
6 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
7 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
8 at java.lang.Thread.run(Thread.java:856)
9 Caused by: java.lang.RuntimeException: Package manager has died
10 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:258)
11 at com.urbanairship.analytics.EventService.startService(Unknown Source)
12 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
13 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
14 at android.os.AsyncTask$2.call(AsyncTask.java:264)
15 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
16 ... 4 more
17 Caused by: android.os.RemoteException: Unknown binder error code. 0xfffffff7
18 at android.os.BinderProxy.transact(Native Method)
19 at android.content.pm.IPackageManager$Stub$Proxy.getServiceInfo(IPackageManager.java:1617)
20 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:253)
21 ... 9 more
22 java.lang.RuntimeException: Package manager has died
23 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:258)
24 at com.urbanairship.analytics.EventService.startService(Unknown Source)
25 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
26 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
27 at android.os.AsyncTask$2.call(AsyncTask.java:264)
28 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
29 at java.util.concurrent.FutureTask.run(FutureTask.java:137)
30 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
31 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
32 at java.lang.Thread.run(Thread.java:856)
33 Caused by: android.os.RemoteException: Unknown binder error code. 0xfffffff7
34 at android.os.BinderProxy.transact(Native Method)
35 at android.content.pm.IPackageManager$Stub$Proxy.getServiceInfo(IPackageManager.java:1617)
36 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:253)
37 ... 9 more
38 android.os.RemoteException: Unknown binder error code. 0xfffffff7
39 at android.os.BinderProxy.transact(Native Method)
40 at android.content.pm.IPackageManager$Stub$Proxy.getServiceInfo(IPackageManager.java:1617)
41 at android.app.ApplicationPackageManager.getServiceInfo(ApplicationPackageManager.java:253)
42 at com.urbanairship.analytics.EventService.startService(Unknown Source)
43 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
44 at com.urbanairship.analytics.Analytics$AddEventTask.doInBackground(Unknown Source)
45 at android.os.AsyncTask$2.call(AsyncTask.java:264)
46 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
47 at java.util.concurrent.FutureTask.run(FutureTask.java:137)
48 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
49 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
50 at java.lang.Thread.run(Thread.java:856)

我该如何解决这个问题?

最佳答案

由于“Binder”的默认值,应用程序正在崩溃。当你经常通过“绑定(bind)服务”处理大对象和使用服务时,就会出现问题。

关于android - UrbanAirship 崩溃的 Android 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18073936/

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