Version: 2022.3
Language : English
Gradle templates
Android Build Settings

Override the Android App Manifest

Gradle generates the Android App Manifest for your application during the build process. You can override this Android App Manifest with your own content in one of the following ways:

Create a template Unity Library Manifest file

To have some control over the format and contents of the Android App Manifest file, override the default Unity Library Manifest file with a custom template. To do this:

  1. Go to Edit > Project Settings to open the Project Settings window.

  2. Select the Player tab, then open Android Player Settings:

  3. In the Publishing Settings section, enable Custom Main Manifest. This creates a Unity Library Manifest file and displays the path to the file. For information on the settings that the Unity Library Manifest controls, refer to Unity Library Manifest.

Gradle merges the manifests from your Android libraries into this main manifest and makes sure that the final configuration is correct.

Editing the Android App Manifest in Android Studio

To have full control over the Android App Manifest file, export your Unity project and edit the Android App Manifest in Android Studio. For more information, see Exporting an Android Project.

Gradle templates
Android Build Settings