Please make sure that you are including the correct version of the NotificationCompat library: import android.support.v4.app.NotificationCompat;
. Here is the official guide on Notification Channels, which are a new feature as of Android O: https://developer.android.com/training/notify-user/channels.
More Related Contents:
- Which solution i can use for guaranteed notifications (it is not about push notification)? [closed]
- Can the Android layout folder contain subfolders?
- Using Build Flavors – Structuring source folders and build.gradle correctly
- Push Notifications when app is closed
- gradle – library duplicates in dependencies
- Adding local .aar files to my gradle build
- Gradle Sync failed could not find constraint-layout:1.0.0-alpha2
- Unable to import Eclipse project to Android Studio
- Could not find com.android.tools.build:gradle:4.0.1 ( or any version )
- Android Studio Run/Debug configuration error: Module not specified
- add ‘tools:replace=”Android:value”‘ to element at AndroidManifest
- Add GitHub library as dependency to Android Studio project
- No notification sound when sending notification from firebase in android
- Stuck with Gradle Build Running
- How to apply plugin to only one flavor in gradle?
- Android XML: RuntimeException: Failed to resolve attribute at index 6
- How to provide different Android app icons for different gradle buildTypes?
- Signing product flavors with gradle
- How to set up gradle and android studio to do release build?
- Confused about testCompile and androidTestCompile in Android Gradle
- Gradle not including dependencies in published pom.xml
- Android Gradle DexException: Multiple dex files define Lorg/hamcrest/Description
- Dismiss Ongoing Android Notification Via Action Button Without Opening App
- After update android studio could not create parent directory for lock file
- Gradle version 1.10 is required. Current version is 2.0
- Execute shell script in Gradle
- Define buildconfigfield for an specific flavor AND buildType
- gradle force build tools version on third party libraries?
- Manually adding aar with dependency pom/iml file
- Getting Gradle error “Could not reserve enough space for object heap” constantly in Intellij IDEA