Android 使用 RemoteViews 发送自定义通知 ,遇到 Couldn't expand RemoteViews问题总结

在RemoteViews这种调用方式中,你只能使用以下几种界面组件:
Layout:
    FrameLayout, LinearLayout, RelativeLayout

Component:
  AnalogClock, Button, Chronometer, ImageButton, ImageView, ProgressBar, TextView, ViewFlipper, ListView, GridView, StackView, AdapterViewFlipper

SO,当你使用了不是上面的组件的时候,可能会遇到这个问题,导致发送通知的时候程序报错。

原文地址:https://www.cnblogs.com/Free-Thinker/p/3919489.html