The GameActivity application entry point is implemented as a library separate from the Unity Editor, allowing you to update the library independently. This means when Google releases bug fixes that your project requires, you can acquire the fixes by updating the GameActivity library version.
Note: Unity doesn’t test all combinations of Unity version and GameActivity library version. If you update to a newer GameActivity library version, test your application thoroughly. For more information about the recommended GameActivity library version per Unity version, refer to Unity and GameActivity version compatibility.
To update the GameActivity library version, follow these steps:
build.gradle file.androidx.games:games-activity dependency.Rebuild and test your application to verify the new version integrates correctly.
For information on how to modify Gradle project files, refer to Modify Gradle project files.
Note: Make sure that the other AndroidX dependencies support the GameActivity version that you want to use. If they don’t you must update them too. For more information, refer to Declaring dependencies.