NotificationCompat无法解析为类型 [英] NotificationCompat cannot be resolved to a type
问题描述
我是Android的新手,并收到错误消息:"NotificationCompat无法解析为类型"
I am newer to Android and receive the error message: "NotificationCompat cannot be resolved to a type"
MinSDK = 9,TargetSDK = 18,
MinSDK=9, TargetSDK=18,
到目前为止,所有消息来源对于如何解决此问题都含糊不清,只需指出:更新JAR文件"即可.
As of yet, all sources are very vague on how to resolve this issue and simply note: "update the JAR files".
我需要什么JAR,在哪里可以找到它们,以便解决此问题?
What JARs do I need and where can I find them, so that this issue is resolved?
推荐答案
您需要支持库.以下是有关如何下载它们的说明: http://developer.android.com/tools/support-library/setup.html
You need the support library. Here are the instructions on how to download them: http://developer.android.com/tools/support-library/setup.html
我需要在项目中添加"android-support-v4.jar"才能使用ActionBar
.
I needed to add "android-support-v4.jar" to my project to use the ActionBar
.
这篇关于NotificationCompat无法解析为类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!