Game Doesn't Start on Android Emulator

Hey,

I’ve completed a game on Libgdx and it runs fine on desktop, but it when I compile it into an apk and install it into an android virtual device, I get the message “Unfortunately, [app name] has stopped”. I couldn’t find a log or anything so I have no idea what’s wrong.

I’ve tried many different configurations, including Android L (Preview) and 4.4W as the OS. RAM is 512 MB and VM Heap is 64. I don’t have a physical android device to test on.

Does anyone have an idea of what might be wrong?

What IDE are you using? In eclipse I get an error message in the logcat window if my app crashes on my phone, I imagine it should be the same for the avd.

usually its an array out of bounds, or some problem with loading assets.

You might be running libraries / code that is not supported on android, but works on desktop.

It worked in the end. Still comes up with the error message, but the game runs fine afterwards. It also runs on proper android devices :slight_smile:

I had to turn GPU on and snapshot off in the emulator settings.