When you create a custom notification view using RemoteView, the start notification bar app stops running.
To view the error prompt, start with
statusbar:caused By:android.content.res.resources$notfoundexception:file Res/drawable/fm_statusbar_clear.xml from drawable Resource ID #0x7f02003f
The resource was not found, and the use method was adjusted to show
04-11 18:54:27.542 21850 21850 E AndroidRuntime:android.app.RemoteServiceException:Bad Notification posted from the package Com.xxx.yyy:Couldn ' t create Icon:statusbaricon (pkg=com.xxx.yyyuser=0 id=0x7f020059 level=0 visible=true num=0)
04-11 18:54:27.542 21850 21850 E androidruntime:at android.app.activitythread$h.handlemessage (ActivityThread.java : 1448)
04-11 18:54:27.542 21850 21850 E androidruntime:at android.os.Handler.dispatchMessage (handler.java:102)
04-11 18:54:27.542 21850 21850 E androidruntime:at android.os.Looper.loop (looper.java:135)
04-11 18:54:27.542 21850 21850 E androidruntime:at android.app.ActivityThread.main (activitythread.java:5258)
04-11 18:54:27.542 21850 21850 E androidruntime:at java.lang.reflect.Method.invoke (Native Method)
04-11 18:54:27.542 21850 21850 E androidruntime:at java.lang.reflect.Method.invoke (method.java:372)
04-11 18:54:27.542 21850 21850 E androidruntime:at com.android.internal.os.zygoteinit$methodandargscaller.run ( zygoteinit.java:907)
04-11 18:54:27.542 21850 21850 E androidruntime:at com.android.internal.os.ZygoteInit.main (zygoteinit.java:702)
The reason for this is the lack of drawable resources for this resolution. The previous adaptation was only suitable for a 1080 resolution, and the new model was 720 resolution. This causes the above error.
ANDROIDRUNTIME:ANDROID.APP.REMOTESERVICEEXCEPTION:BAD notification posted from package