The type org.andengine.entity.shape.IAreaShape cannot be resolved.

Everything
I came across an error in andEngine.

The type org.andengine.entity.shape.IAreaShape cannot be resolved. It is indirectly referenced from required .class files 

When I use the code below this tutorial .

 PhysicsFactory.createBoxBody(physicsWorld, levelObject, BodyType.StaticBody, FIXTURE_DEF).setUserData("platform1"); 

Thanks in advance.

+4
source share
3 answers

There is no IAreaShape class in the GLES2-Anchor branch. You might be mixing some old libraries. Try loading the sources again. Please note that your PhysicalBox2D extension must also be from the GLES2-Anchor branch. In addition, you should not add banks to the buildpath. You should only see:

  • Android XYZ
  • Android dependencies

And add the libraries to the “Android” part of your project configuration.

+2
source
+3
source

I had the same problem, it was with the AE site, although I selected the anchor center branch when I hit the boot but it didn't look different. I'm not sure what I did, but finally I got a physics engine to respond to the zip version of ANCHOR CENTER for download. I had no problem getting the zip file ANDENGINE ANCHOR CENTER only in the physics engine.

0
source

All Articles