Couldn't expand RemoteViews 错误及解决
2017-11-14 10:59
621 查看
在写通知栏的时候遇到如下错误android.app.RemoteServiceException: Bad notification posted from package com.cootek.smartdialer: Couldn't expand RemoteViews 原因:使用了自定义控件
<com.makeramen.roundedimageview.RoundedImageView android:src="@drawable/icon_dialer" android:layout_width="32dp" android:layout_height="32dp" android:layout_gravity="center_vertical" android:layout_marginLeft="14dp" />
以及
<Viewandroid:layout_width="1px"android:layout_height="24dp"android:layout_gravity="center_vertical"android:background="#d8d8d8" />
因为RemoteViews 支持的控件数量有限
将com.makeramen.roundedimageview.RoundedImageView 改为ImageView
将View 改为TextView
问题解决。
相关文章推荐
- android - Bad notification posted - Couldn't expand RemoteViews for: StatusBarNotification
- xCode模拟器运行后,出现:couldn’t be completed. (LaunchServicesError error 0.)错误的解决方法
- 解决git的这个错误:fatal: Unable to find remote helper for 'https'
- git 错误: Unable to find remote helper for 'https'解决方法
- Linux SSH 远程登录错误解决办法 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
- 解决mongodb在ubuntu下启动失败,提示couldn‘t remove fs lock errno:9 Bad file descriptor的错误
- 解决 SSH登陆错误 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
- 使用Zeppelin时出现at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Client.recv_getFormType(RemoteInterpreterService.java:288)错误的解决办法(图文详解)
- linux rhel6.2 解决 git 使用错误:fatal: Unable to find remote helper for 'https'
- git之Pushing to the remote branch is not fast-forward错误解决
- 编译Android系统AIDL模块出现couldn't find import for class错误的解决办法
- 解决用xshell连接cygwin出现The remote SSH server rejected X11 forwarding request的错误
- 解决Git错误提示:fatal: remote origin already exists.及Git常见错误处理!
- Git 提示fatal: remote origin already exists 错误解决办法
- yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
- git 错误: Unable to find remote helper for 'https'解决方法
- zenmap: couldn't load font "宋体 Not-Rotated 10"错误解决方法
- 解决错误:Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
- apache出现couldn't spawn child process错误的解决方法