简体   繁体   English

IntelliJ:为什么无法识别我的android.support软件包?

[英]IntelliJ: why my android.support package isn't recognized?

I'm fairly new to IntelliJ and I can't figure out why IntelliJ can't recognize the support package which is suppose to be under speech. 我是IntelliJ的新手,我不知道为什么IntelliJ无法识别应该在演讲中的支持包。 I'm trying to import NotificationCompact, but I can't import android.support... it says cannot resolve symbol 'support'. 我正在尝试导入NotificationCompact,但是我无法导入android.support ...它说无法解析符号“ support”。 Yes I have the SDK installed and updated. 是的,我已经安装并更新了SDK。 I have the support folder installed, but IntelliJ doesn't recognize it. 我已经安装了支持文件夹,但是IntelliJ无法识别它。 Yes, I have tried File-->Invalidate Caches. 是的,我尝试了File-> Invalidate Caches。 The target-sdk is 12 - 18. My target is 3.0 and above. target-sdk是12-18。我的目标是3.0及更高版本。

You have not included support package in the project structure: "File->Project Structure == > Modules ==> Dependencies". 您尚未在项目结构中包括支持包:“文件->项目结构==>模块==>依赖关系”。 IDEA uses it's own build scripts and ignores jars from lib directory, unless they included into the project structure. IDEA使用它自己的构建脚本,并且会忽略lib目录中的jar,除非它们包含在项目结构中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM