简体   繁体   中英

My coding indicate these error, how to solve?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM