问题
Compiling error when build project in sdk\extras\android\support\samples\Support4Demos
Eclipse, import existing code into workspace, ...\sdk\extras\android\support\samples\Support4Demos
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
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