java.lang.RuntimeException: invalid channel for service notification

在应用中使用台前服务同时创建通知报: Android 在API26之后原本的NotificationCompat.Builder (Context context)被废弃,创建通知需要使用新的构造器NotificationCompat.Builder (Context context, String channelId) String CHANNEL_ID = "com.example.test"
相关文章
相关标签/搜索