Version: 2023.2
Language : English
Modify GameActivity bridge code
Set the application entry point for your Android application

Update the GameActivity library

The GameActivity application entry point is implemented as a library separate from the Unity Editor which means that you can update the library independently. This is useful if Google provides bug fixes that your project requires because you can acquire the fixes via a GameActivity library version update.

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.

To update the GameActivity library version, change the value of the androidx.games:games-activity dependency in build.gradle. For information on the possible methods to do this, 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.

Additional resources

Modify GameActivity bridge code
Set the application entry point for your Android application
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961