Cross-platform features are deprecated, for new projects it is recommended to use on Android only.

Google Play Games support for libGDX games on Android and Desktop is provided by gdx-gamesvcs libGDX extension. The extension also provides implementations for other game services (Apple Game Center, GameJolt and others).

Follow the readme and the project’s wiki to integrate GPGS and other game services in your project.

The following article describes the manual integration in your project without using the library.

A based example that makes use of Leaderboards and Achievements is available to download from Google Play.

The project is freely available on , and a companion tutorial is available here.

Latest tutorial using Android Studio can be found

  1. Install Google Play Service and Google Play Repository using and Android SDK

To do that on Android Studio, Open up SDK Manager, ( Click the button next to the AVD manager in the top toolbar ) click Launch Standalone SDK Manager Scroll down to the Extras section and make sure these 2 packages are installed and updated to the latest :

  • Google Repository
  1. Download BaseGameUtils sample project here, copy folder , located in folder BasicSamples into your project root folder.

  2. Edit settings.gradle

  1. Edit root build.gradle and add the below as android dependency:
  1. compile project(":BaseGameUtils")
  1. in your AndroidManifest.xml file
  • add to your application tag
  1. string.xml

in your android project, under ‘res’->’values’, in file strings.xml add app_id as follow, where 123456789 is your app ID in as declared in the Google Play Developer Console.

  1. build.gradle in Android project

Synchronize with Gradle. you will get the following message:

  1. Error:Execution failed for task ':android:processDebugManifest'.

Google Play Games’ iOS support is deprecated and shouldn’t be implemented in new games.

There are two ways (called Backend) to integrate Google Play Games Services with iOS depending whether your are using the open source, community supported or Intel’s Multi-OS Engine

Please read the specific page for more information on

Warning:You can no longer create new Google Play Game Services accounts with iOS. There is a Simple LIBDX Google Play Games Services integration for iOS but it explains why the new version of Google SDK does not allow iOS users to create a GPGS account from iOS (not a libGDX issue).

note: Until early 2016, libGDX iOS integration was achieved using . This has been deprecated. Be careful when you check examples on the Internet as older examples may be based on this version. The easy way to find out which version is being referred to:

  • Deprecated examples will have org.robovm:robovm in the buid.gradle file

Checkout the specific page for more information on Intel’s Multi-OS Engine.

is a Kotlin based example that makes use of Leaderboards. It is available on Android and iOS (Gamecenter and Google Play Services integration).