Debugging Your Android Games

To troubleshoot problems with your game, you can turn on verbose logging on your device using the adb shell command. You can then view the Google Play games services log messages using logcat.

Enable logging

To enable logging on your test device:

  1. Connect the device to a machine that has the Android SDK installed.
  2. Open a terminal and run this command:

    adb shell setprop log.tag.Games VERBOSE

  3. Run your game on the device and reproduce the problem you are trying to debug.

  4. View logs:
    adb logcat

Disable logging

To disable verbose logging for the Google Play games services on your device and revert to the original logging behavior, run the following command:

adb shell setprop log.tag.Games INFO

Enviar comentarios sobre…

Play Games Services for Android
Play Games Services for Android