Notifications stop appearing and gives error in the console

1

I was receiving about 7 notifications badly the user logged in that they were placed by an alarm and sent to an alarm receiver where he creates the notification each with his id.

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

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

Does anyone know how to solve it?

    
asked by anonymous 27.06.2016 / 18:22

1 answer

0

Speak James,

You'd better post the code here, to understand where you're possibly going, but try to do the following:

Switch:

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

By:

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

Hugs.

    
27.06.2016 / 20:34