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: By default, Unity uses a specific GameActivity library version for each Unity version. For the recommended GameActivity library version per Unity version, refer to GameActivity requirements and compatibility. Unity doesn’t test all combinations of Unity version and GameActivity library version. Changing the GameActivity library version, particularly across major versions, can cause incompatibilities with the Unity runtime. Change the version only if you have a critical requirement that the recommended version doesn’t meet and test your application thoroughly after any change.
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.