在使用Android Messages ver 2.3.063发送彩信时,我正在举报"开发人员警告包com.google.android.apps.messaging".
在日志中
08-12 16:57:52.368 7661 7682 W Notification: Use of stream types is deprecated for operations other than volume control
08-12 16:57:52.368 7661 7682 W Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case
08-12 16:57:52.369 1604 3146 E NotificationService: No Channel found for pkg=com.google.android.apps.messaging, channelId=miscellaneous, id=5, tag=null, opPkg=com.google.android.apps.messaging, callingUid=10130, userId=0, incomingUserId=0, notificationUid=10130, notification=Notification(channel=miscellaneous pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x8 color=0xff2a56c6 vis=PRIVATE)
08-12 16:57:52.375 1604 3094 D …Run Code Online (Sandbox Code Playgroud) 我在Android 8.1 API 27上获得了Toast:
包"my_package_name"的开发者警告
无法在...上发布通知
Logcat包含下一个字符串:
通知:对于卷控制以外的操作,不推荐使用流类型
W/Notification:请参阅setSound()的文档,了解如何使用android.media.AudioAttributes来限定播放用例
E/NotificationService:找不到pkg = my_package_name的频道
Toast和Logcat中的完整信息可以帮助解决此问题.
notifications android android-notifications android-8.0-oreo