首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法识别Sensor.TYPE_LINEAR_ACCELERATION

无法识别Sensor.TYPE_LINEAR_ACCELERATION
EN

Stack Overflow用户
提问于 2012-01-12 11:00:21
回答 2查看 331关注 0票数 1

我正在使用Eclipse创建一个Android项目,我得到了这个错误。我使用的是姜饼2.3.3 (Google API Level 10)。可能会遗漏什么?

提前谢谢。吉列尔莫。

EN

回答 2

Stack Overflow用户

发布于 2012-01-12 11:02:44

您导入android.hardware.Sensor了吗?

票数 0
EN

Stack Overflow用户

发布于 2012-01-13 08:03:08

问题出在导入上。我使用的是

导入导入org.openintents.sensorsimulator.hardware.Sensor;导入org.openintents.sensorsimulator.hardware.SensorEvent;导入org.openintents.sensorsimulator.hardware.SensorEventListener;导入org.openintents.sensorsimulator.hardware.SensorManagerSimulator;

来自openintents项目,该项目需要一个导入,该导入与使用Sensor类发生冲突,然后我无法使用新的传感器。

谢谢。吉列尔莫。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8829574

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档