操作栏无法解析为类型 [英] actionbar cannot be resolved to a type

查看:52
本文介绍了操作栏无法解析为类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建项目时编译错误sdk\extras\android\support\samples\Support4Demos

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

  1. Eclipse,将现有代码导入工作区,...\sdk\extras\android\support\samples\Support4Demos

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

在导入的项目上右键->构建路径->配置构建路径,在sdk\extras\android\support\v4中添加名为android-support-v4.jar"的jar文件

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

构建项目,然后我有 196 个错误.大部分是ActionBar 无法解析为类型"

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

我也试过导入android-support-v13.jar,结果是一样的.为什么?

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

推荐答案

您的问题可以通过 Project->Properties->Java Compiler

这篇关于操作栏无法解析为类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆