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.
It appears that there's a broken version of the Android Support package out there. Specifically, the one currently being deployed in ActionBarSherlock.
I'd recommend always using the latest
android-support-v4.jar
from inside the Android SDK. You'll find it in[android-sdk]/extras/android/support/v4
.You may be on an older version of the Android Support package. Make sure that your project has a current copy of
android-support-v4.jar
orandroid-support-v13.jar
inlibs/
.