TYPE_LINEAR_ACCELERATION cannot be resolved or is not a field
2014-06-24 11:29
260 查看
在编写Android程序时,取得直线加速度传感器,mySensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION)如果编译报错,提示TYPE_LINEAR_ACCELERATION cannot be resolved or is not a field,这主要是因为项目的SDK版本太低造成,Android2.3.1以上才支持TYPE_LINEAR_ACCELERATION。
相关文章推荐
- main cannot be resolved or is not a field
- Android开发中Layout中明明改了id,但是还出现"cannot be resolved or is not a field"的原因
- jsp 自定义标签 错误 : Unable to compile class for JSP: ,apache cannot be resolved or is not a field
- layout cannot be resolved or is not a field
- Android Error:main cannot be resolved or is not a field,异常语句:setContentView(R.layout.main);
- R.xml.preference报错:preference cannot be resolved or is not a field
- "cannot be resolved or is not a field"问题解决
- xxx cannot be resolved or is not a field
- 报出现“"cannot be resolved or is not a field",
- Eclipse :main cannot be resolved or is not a field (来自 CSDN_ID typename)
- main cannot be resolved or is not a field
- XXX cannot be resolved or is not a field
- Android R.id.xxxx cannot be resolved or is not a field
- main cannot be resolved or is not a field (来自 CSDN_ID typename)
- 在android编程中出现cannot be resolved or is not a field
- eclipse中system.out.println()出现问题,总是提示out cannot be resolved or is not a field
- styleable cannot be resolved or is not a field
- 运行时出现cannot be resolved or is not a field
- styleable cannot be resolved or is not a field
- 关于id cannot be resolved or is not a field 的一个解决方法