Skip to content Skip to sidebar Skip to footer

Cannot Find Symbol Class NotificationManagerCompat

I am trying to build a notification method that would result in a notification appearing on the locked screen when a particular beacon is detected. My understanding is that I need

Solution 1:

Maybe you have this error come up, because you added a new module to your project.

To fix it, change minSdkVersion, targetSdkVersion, buildToolsVersion, and compileSdkVersion to match the build.gradle in your original module.

After that set minifyEnabled to false.

What it actually fixed it for me (while using Android Studio 3.0.1) was setting facebook to

compile 'com.facebook.android:facebook-android-sdk:4.26.0'

Also check your other libs and dependencies and your build file.

My current build file:

allprojects {
    repositories {
        jcenter()
        maven  {
            url "http://repo1.maven.org/maven2"
        }
        // maven  {
        //    url 'https://maven.google.com'
        // }
        // since Android Studio 3.0.0
        // or google()
        flatDir {
            dirs 'libs'
        }
    }
}

Post a Comment for "Cannot Find Symbol Class NotificationManagerCompat"