Notifications stop appearing and gives console error

Asked

Viewed 41 times

1

It was receiving about 7 notifications as soon as the user logged in that were set by an alarm and sent to an alarm receiver where it creates the notification each with its id.

I ran the app again with the same code (exactly the same) and this error appears whenever I try to create the mass notifications on login. In other parts of the code works normally.

Could not find class 'android.app.Notification$Builder'

Does anyone know how to solve ?

1 answer

0

Fala Tiago,

You’d better post the code here, to understand where you might be missing, but try to do the following:

Change:

Notification.Builder mbuilder = new Notification.Builder(this)

For:

NotificationCompat.Builder mbuilder = new NotificationCompat.Builder(this)

Hugs.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.