1

I am just starting to learn cocos2d-x for Android, and understand how to create a new project (using create-android-project.sh), compiling the native code (using build_native.sh), then importing it into Eclipse as a new Android project (New > Android Project > From source...).

The first time I run the project it works great, but if I run it a second time, nothing shows up on screen and I get a force close after 30 seconds or so. Is the Eclipse import screwing something up? What could I be doing wrong? Do I need to build/clean/etc in a certain order?

4

1 回答 1

1

我注意到,在 2.2 上,如果您使用后退按钮,而不是主页按钮或“电源”按钮,它会破坏您的模拟器。在 2.3.3 及更高版本上,它甚至不允许您使用后退按钮。

如果您删除模拟器并重新制作它,问题似乎就解决了(有点)。

仍在试图弄清楚如何为我正在制作的应用程序解决这个问题,因为它需要支持 2.2。

于 2012-05-30T22:37:37.853 回答