在使用RemoteViews的时候出现 android.app.RemoteServiceException: Bad notification posted from package com.xxxx.xxx: Couldn't expand RemoteViews for: StatusBarNotification(pkg=
错误那有可能就是使用的布局出现问题
查看官方文档得知 RemoteViews并不是支持全部的布局
参考 https://developer.android.com/guide/topics/appwidgets/#CreatingLayout
在RemoteViews 中支持一下这几种布局
FrameLayout
LinearLayout
RelativeLayout
GridLayout
已经支持一下几种控件
AnalogClock
Button
Chronometer
ImageButton
ImageView
ProgressBar
TextView
ViewFlipper
ListView
GridView
StackView
AdapterViewFlipper