Home » Android » java – Android studio Cannot resolve symbol 'NotificationChannel'

java – Android studio Cannot resolve symbol 'NotificationChannel'

Posted by: admin June 15, 2020 Leave a comment


I have updated Android Studio to 3.0 Beta 5

Other classes like NotificationManager are imported just fine. But it’s not finding NotificationChannel anywhere.

import android.app.NotificationChannel;

What could cause this?

How to&Answers:

NotificationChannel is added in API 26 change your compile SDK to 26 and try

Reference: https://developer.android.com/reference/android/app/NotificationChannel.html


set compileSdkVersion 26 in build.gradle