Importing AndEnginePhysicsBox2DExtension-GLES2 in Android Studio 1.5

杀马特。学长 韩版系。学妹 提交于 2020-01-25 04:58:04

问题


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.


回答1:


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

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




回答2:


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.



来源:https://stackoverflow.com/questions/35010974/importing-andenginephysicsbox2dextension-gles2-in-android-studio-1-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!