Add AndEngine Library

2019-08-05 05:31发布

问题:

I got AndEngine from github and did as follows:

And i got AndEnginePhysicsBox2DExtension and did:

After that i added the libraries to my App

I then imported

But then when i press OK and open the properties of my app i get this

How can i fix this problem ?

回答1:

you shouldn't import the andengine project. just use andengine jar-file as library and it will work well. you can find the jar-files in the bin-folder of the project. and when i'm not wrong, then this error comes, when you don't copy the files of andengine into your work space, while you imported the andengine project's



回答2:

I have fixed the problem , I just pressed Apply after importing the libraries then pressed OK. I honestly don't know why pressing Apply then OK works but pressing OK directly doesn't work.