我正在使用这个教程:Android custom notification开发和安卓应用程序与自定义通知。虽然这款应用在安卓7及更低版本上运行良好,但我无法在我的onpePlus 3T上的安卓8上运行它。请帮帮忙。
发布于 2017-12-05 19:28:49
您的教程已过时。如果您的目标是Android 8.0 (API级别26),则必须至少创建一个通知通道。
阅读官方通知指南了解更多信息:https://developer.android.com/guide/topics/ui/notifiers/notifications.html#ManageChannels
https://stackoverflow.com/questions/47651099
复制相似问题