问题
I'm developing a game using andEngine. Game is running on device,but it is not running on emulator. Game exits and is redirected to home screen. What might be the issue?
No any Errors in Logcat.
回答1:
It is because of openGPL.ES2 of AndEngine library requires device should have and enable OpenGLES.
You must:
- Install Android SDK versio >=19 with compatible AVD manager.
- And config in Eclipse for your Android Virtual Device with GPU emulation = yes in Hardware config part on the AVD Manager diaglog. Or in run configuration parameter add:
gpu -on
来源:https://stackoverflow.com/questions/12178367/not-able-to-run-game-on-emulator-andengine