Bad notification posted - Couldn't expand RemoteViews for: StatusBarNotification

前端 未结 15 2051
执笔经年
执笔经年 2020-12-03 06:47

I am trying to post a notification with a custom view in the notification area from an IntentService, and getting the Couldn\'t expand RemoteView e

15条回答
  •  悲&欢浪女
    2020-12-03 06:54

    Be careful when using Vector drawables. On pre-Lollipop devices setting an icon through NotificationCompat.Builder methods, like setSmallIcon, will cause this crash. You'll get same crash if using Vector drawables in your custom view.

提交回复
热议问题