Importing AndEnginePhysicsBox2DExtension-GLES2 in

2019-08-15 05:27发布

I'm trying to make flappy bird equivalent app using AndEngine. I'm having trouble importing AndEnginePhysicsBox2DExtension-GLES2 module in Android Studio 1.5

So far, I have imported AndEngine-GLES2 as module by

Project Structures -> green + sign on left top -> import Eclipse ADP -> selecting path

to AndEngine-GLES2 source.

For some reason when I try this for AndEnginePhysicsBox2DExtension-GLES2, it doesn't recognize it as module therefore I can't import it. I'm not using JAR FYI.

step 4 in here doesn't help as I can't import AndEnginePhysicsBox2DExtension-GLES2, at all.

2条回答
别忘想泡老子
2楼-- · 2019-08-15 05:55

For both libraries do the following:Go to project strukture -> modules-> button + import module from existing sources.

Then click on your module, switch to dependencies bookmark and add Andengine and physics extenstion imported modules. Then click on Andengine project and add dependency to Physics extension module.

查看更多
别忘想泡老子
3楼-- · 2019-08-15 06:16

You have to remove "-GLES2" from folders names.

Here is a picture from my folder

Other solution could be: File -> New -> Import project -> Select AndEnginePhysicsBox2DExtension and save the project. Then import the module from project structure...

查看更多
登录 后发表回答