如何修复此错误:"android.app.RemoteServiceException:从软件包中发布错误的通知" [英] How to fix this bug : "android.app.RemoteServiceException: Bad notification posted from package"
本文介绍了如何修复此错误:"android.app.RemoteServiceException:从软件包中发布错误的通知"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
崩溃信息是:
android.app.RemoteServiceException: Bad notification posted from package com.xx.xx:
Couldn't create icon: StatusBarIcon(pkg=com.xx.xx user=0 id=0x7f02035c level=0 visible=true num=0 )
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1372)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loop(Looper.java:136)
android.app.ActivityThread.main(ActivityThread.java:5139)
java.lang.reflect.Method.invokeNative(Native Method)
java.lang.reflect.Method.invoke(Method.java:515)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
dalvik.system.NativeStart.main(Native Method)
我认为问题是无法通过resId找到可绘制资源.您对此有何看法?
I think the problem is can not find the drawable resource by the resId. what's your opinion?
推荐答案
我遇到了同样的问题.我注意到我正在对小图标使用Vector Drawable,并且此错误仅在棒棒糖之前的设备上发生.在棒棒糖之前的设备中使用PNG资源可以解决此问题.
I was facing the same problem. I noticed I was using Vector Drawable for small icon and this error occurred only on pre-lollipop devices. Using PNG resource for pre-lollipop devices fixed the issue.
这篇关于如何修复此错误:"android.app.RemoteServiceException:从软件包中发布错误的通知"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文