亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

實際寫的時候報錯

?報如下錯誤:No Channel found for pkg=com.example.mynotification, channelId=通知渠道ID, id=1, tag=null, opPkg=com.example.mynotification, callingUid=10085, userId=0, incomingUserId=0, notificationUid=10085, notification=Notification(channel=通知渠道ID pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE)

嘗試了網上的解決辦法,依然報錯

正在回答

1 回答

builder?=?new?Notification.Builder(this);
builder.setAutoCancel(true)
????.setChannelId("channel_id")
????.setContentTitle("下載中。。。。。")
????.setContentText("明天是周日,不上班")
????.setSmallIcon(R.mipmap.ic_launcher);

builder 寫全試試

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Android O(8.0)通知欄解決方案
  • 參與學習       6673    人
  • 解答問題       5    個

本課程主要介紹Android 8.0 ChannelNotification的管理。

進入課程

實際寫的時候報錯

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號