我的编码显示这些错误,如何解决?

发布于 2024-10-21 02:19:08 字数 997 浏览 2 评论 0原文

您好,现在我尝试将 ndk 项目键盘和轨迹球类实现到 andengine 中,但现在 andengine 指示这些错误,如何解决这些错误请帮助我?

Description    Resource    Path    Location    Type
MotionEvent.ACTION_MASK cannot be resolved    AbstractMultitouchPad.java    /keytrack
/src/com/momojo/gba/input    line 74    Java Problem
MotionEvent.ACTION_MASK cannot be resolved    GameScreen.java    /keytrack/src/com
/momojo/gba    line 92    Java Problem
MotionEvent.ACTION_POINTER_DOWN cannot be resolved    AbstractMultitouchPad.java    
/keytrack/src/com/momojo/gba/input    line 78    Java Problem
MotionEvent.ACTION_POINTER_DOWN cannot be resolved    AbstractMultitouchPad.java    
/keytrack/src/com/momojo/gba/input    line 90    Java Problem
MotionEvent.ACTION_POINTER_DOWN cannot be resolved    GameScreen.java    /keytrack
/src/com/momojo/gba    line 97    Java Problem
MotionEvent.ACTION_POINTER_ID_SHIFT cannot be resolved    
AbstractMultitouchPad.java    /keytrack/src/com/momojo/gba/input    line 82    Java   
Problem

Hi now i am try to implement ndk project keyboard and trackball class into andengine but now andengine indicate these error, how to solve these error please help me?

Description    Resource    Path    Location    Type
MotionEvent.ACTION_MASK cannot be resolved    AbstractMultitouchPad.java    /keytrack
/src/com/momojo/gba/input    line 74    Java Problem
MotionEvent.ACTION_MASK cannot be resolved    GameScreen.java    /keytrack/src/com
/momojo/gba    line 92    Java Problem
MotionEvent.ACTION_POINTER_DOWN cannot be resolved    AbstractMultitouchPad.java    
/keytrack/src/com/momojo/gba/input    line 78    Java Problem
MotionEvent.ACTION_POINTER_DOWN cannot be resolved    AbstractMultitouchPad.java    
/keytrack/src/com/momojo/gba/input    line 90    Java Problem
MotionEvent.ACTION_POINTER_DOWN cannot be resolved    GameScreen.java    /keytrack
/src/com/momojo/gba    line 97    Java Problem
MotionEvent.ACTION_POINTER_ID_SHIFT cannot be resolved    
AbstractMultitouchPad.java    /keytrack/src/com/momojo/gba/input    line 82    Java   
Problem

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

姜生凉生 2024-10-28 02:19:08

我遇到了同样的问题。这是因为android API级别太低。我在项目属性中将 android API 级别提高到 2.1,然后错误就消失了。只是一些线索。我没有尝试找出 API 版本之间的确切差异。

I meet the same problem. It's because android API level is too low. I raised android API level to 2.1 in the project property, then the errors gone. Just some clue.I didn't try to find the exact difference between API versions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文