简体   繁体   中英

val notification = NotificationCompat.Builder(context, channelID)

enter image description here

i try to write this line, then it will shows an erreo what is the solution for that error pleas help my i am fully stuck on that. enter image description here

You cannot use an integer for channelId argument, try use a String or Notification.

Reference: https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#Builder(android.content.Context,java.lang.String)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM