android  -- The import android.support cannot be resolved

所谓孤零零指的不是周围的人口密度,而是指个人的精神层面了

问题

第一次新建安装项目,死命报 The import android.support cannot be resolved 的错,整个页面都被红色占领了,憋屈

android  -- The import android.support cannot be resolved


解决

  1. 原因

是在新建Android项目的时候,eclipes新更新的ADT,在你创建的Android版本最低版本低于4.0的时候,会新建一个v7的项目,把里面的包导入就可以了。如果不想有警告的话,直接在创建项目的时候把最低版本设置为4.0以上就可以了

  1. 版本默认的是 2.2 版本的

android  -- The import android.support cannot be resolved

  1. 将其改为 4.0 以上的

android  -- The import android.support cannot be resolved

  1. 这样就正常了

android  -- The import android.support cannot be resolved


总结

以后长点教训


相关文章:

  • 2021-10-28
  • 2021-08-08
  • 2021-05-06
  • 2021-12-16
  • 2021-12-17
猜你喜欢
  • 2021-04-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-07-27
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案