Android studio 无法解析符号“NotificationChannel" [英] Android studio Cannot resolve symbol 'NotificationChannel'

查看:95
本文介绍了Android studio 无法解析符号“NotificationChannel"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 Android Studio 更新至 3.0 Beta 5

I have updated Android Studio to 3.0 Beta 5

其他类如 NotificationManager 导入就好了.但它没有在任何地方找到 NotificationChannel.

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

import android.app.NotificationChannel;

什么可能导致这种情况?

What could cause this?

推荐答案

NotificationChannel is added in API 26 将你的编译 SDK 改为 26 并尝试

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

参考:https://developer.android.com/reference/android/应用程序/NotificationChannel.html

这篇关于Android studio 无法解析符号“NotificationChannel"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆