android -- The import android.support cannot be resolved
![enter description here enter description here](http://owgxfd8jv.bkt.clouddn.com/126566-106.jpg)
问题
第一次新建安装项目,死命报 The import android.support cannot be resolved 的错,整个页面都被红色占领了,憋屈
![](http://owgxfd8jv.bkt.clouddn.com/1509467227661.jpg)
解决
- 原因
是在新建Android项目的时候,eclipes新更新的ADT,在你创建的Android版本最低版本低于4.0的时候,会新建一个v7的项目,把里面的包导入就可以了。如果不想有警告的话,直接在创建项目的时候把最低版本设置为4.0以上就可以了
- 版本默认的是 2.2 版本的
![、 、](http://owgxfd8jv.bkt.clouddn.com/1509467106889.jpg)
- 将其改为 4.0 以上的
![](http://owgxfd8jv.bkt.clouddn.com/1509467156761.jpg)
- 这样就正常了
![enter description here enter description here](http://owgxfd8jv.bkt.clouddn.com/1509467565849.jpg)
总结
以后长点教训