actionbar cannot be resolved to a type

╄→гoц情女王★ 提交于 2019-12-11 07:53:46

问题


Compiling error when build project in sdk\extras\android\support\samples\Support4Demos

  1. Eclipse, import existing code into workspace, ...\sdk\extras\android\support\samples\Support4Demos

  2. Right click on the imported project -> build path -> configure build path, add the jar file named "android-support-v4.jar" in sdk\extras\android\support\v4

  3. Build the project, then I have 196 errors. Most part is "ActionBar cannot be resolved to a type"

I have also tried to import android-support-v13.jar, result is the same. Why?


回答1:


Your issue could be solved by changing the compiler compliance level to 1.6 by Project->Properties->Java Compiler



来源:https://stackoverflow.com/questions/18625890/actionbar-cannot-be-resolved-to-a-type

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!