I want to do exactly, what he does: Android Notification at time But in my AlarmReceiver class, I have an error: The method build() is undefined for the type NotificationCompat.Builder, at line: mNotificationManager.notify(1, mBuilder.build());
In android developer site is a similar code, but the same error appears(http://developer.android.com/training/notify-user/build-notification.html).
Any help is greatly appreciated.