You need to change the level of the documentation site API to see new methods.

You should use the method below suggested by @RobCo added to support library version 26.0.0-beta1
ContextCompat.startForegroundService()
And YES, the migration guide is wrong for this, NotificationManager does not have a method called startForegroundService() even in API 26.
PS: the migration guide has been fixed and it now binds correctly to the ContextCompat.startForegroundService() method.
source share