Add the Play Games Services SDK to your APK to use the APIs

Hey,

Im just trying to get banner ads into my game with the option of turning them off for a small fee.
6 hours later trying to sort out play games services.

Im at this stage

Configure your app

In your project-level build.gradle file, include Google’s Maven repository and Maven central repository in both your buildscript and allprojects sections:

  buildscript {
    repositories {
      google()
      mavenCentral()
    }
  }

  allprojects {
    repositories {
      google()
      mavenCentral()
    }
  }

Add the Google Play services dependency for the Play Games SDK to your module’s Gradle build file, which is commonly

app/build.gradle:

  dependencies {
    implementation "com.google.android.gms:play-services-games-v2:+"
  }

After completing these steps you must set up sign-in in order for the game to access Play Games Services features.

Does anyone know how to do this?

Ive had such poor experiance using build.gradles that the forseeable future of battling this is giving me the shivers.

Thanks.

Update:
Some small links to maybe assist

Github link with plugin

Dev Page with code.

These are the other links Im using
Unreal Doc

and the tutorial

Ok so going through my build.gradle thats located in

D:\Epic\UE_5.5\Engine\Build\Android\Java\gradle (Top level build.gradle)

I can see it already it has both sections of code. Interesting. Im still not ticking the box for google console however.

image

We dig further


It specifies that the second part of the dependency goes into app/build.gradle
I feel like Im going insane. Why dont they jsut give the full directory.

To me this is this location
D:\Epic\UE_5.5\Engine\Build\Android\Java\gradle\app

But Clicking the link takes you here

Link

This states its in this directory = project/module/ directory

But isnt the same as in unreal. I cant find the project/module directory. So Im on the hunt again.