Android app crash with distribution build

Hi, I have my android app and it works pretty fine. I set up a keystore and a key, and registered everything on Google Play Developer Console, my build with my keystore is working, as long as ‘For Distribution’ is disabled in packaging settings.

I have my leaderboards, I can login to Google Play Games, etc., but as soon as I activate ‘For Distribution’ in the settings, the app crashes on launch.

Now, I want to know what I can do, and if I can upload my app to Play Store without ‘For Distribution’ enabled.

Well I cannot put it online with For Distribution disabled, because then I would have a debug build. So I need help with the crash.

I can build and run a deployment mode game for Android using 4.7.5 just fine, so it’s not a “it’s always broken” problem.

To debug this, you will need to get the debug logs when crashing, to figure out where this is happening. You can debug this by connecting to the device with USB.

To get these logs, run “adb -logcat > logfile.txt” from the command line, and wait 10 seconds for it to get through all the previous logs. Then, actually start the application. After it crashes, stop the adb process (ctrl-C) and open up the logfile.txt file. Towards the end of this file (within 1-2 pages) there will be a stack trace of the crash location.
In the log, there may also be other helpful messages about what was going on when the crash happened.

If you still can’t self-help after looking at these logs, then please post the stack trace and the few lines before/after, so that perhaps someone else can figure out what the problem is.

Thanks, I will do that tomorrow.

That doesn’t work properly. When I activate logging, it instantly fills a file with around 700 KB and then nothing more happens, even if I start the app. The logging is like stopped.

I checked everything, the certificate with which my app is signed matches with the cert in the keystore and on google play. The app id is correct, I don’t know what to do.

Ok, I have a usable log file:

The interesting part starts at line 10535.
The package name for my app is com.edge.SpaceDive

Can someone please have a look at this?

Log file

You have some Class not Found exceptions, are you sure proguard is setup correctly? I’d look at that first.

Where can I see if proguard is set up correctly?

The last answer from DG Gage, with the mediaplayer entry in the proguard file works for me.