I want to do exactly what it does: Android notification at the moment But in my AlarmReceiver class I have an error: the build () method is undefined for the type NotificationCompat.Builder, in the line: mNotificationManager.notify (1, mBuilder.build ( ));
There is a similar code on the Android developer site, but the same error appears ( http://developer.android.com/training/notify-user/build-notification.html ).
Any help is greatly appreciated.
You may be in an older version of the Android Support Package. Make sure your project has a current copy of android-support-v4.jar or android-support-v13.jar in libs/ .
android-support-v4.jar
android-support-v13.jar
libs/
It looks like there is a broken version of the Android support package. In particular, the one currently deployed to ActionBarSherlock .
I would recommend always using the latest version of android-support-v4.jar from the Android SDK. You will find it in [android-sdk]/extras/android/support/v4 .
[android-sdk]/extras/android/support/v4
Source: https://habr.com/ru/post/1491649/More articles:UTF-8 and TinyXML - c ++custom axis scale in matlab - matlabSSD I / O Parallel and Hard Drives - c ++Can Coldfusion determine the type of an array in a function argument? - coldfusionDisplay empty editor for default values ββusing editor - asp.net-mvc-4SON manipulator in mongo queries - pymongoCan we handle browser cookies with Page Object? - selenium-webdriverHow to check if a type can be converted to another type in C # - c #Interpreting a .WAV file [Python] - pythonRecognize gestures behind a transparent UITableView - objective-cAll Articles