Version: 2021.2
言語: 日本語
Gradle templates
Android 用アプリケーションのビルド

Overriding an Android Manifest

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

Creating a template Android Manifest file

To have partial control over the format of the Android Manifest file, create a template Android Manifest file and override Unity’s default Library Manifest. 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 an Android Manifest file and displays the path to the file. For information on the format of the Android Manifest and the settings it configures, see the Android Developer documentation on Android Manifests.

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

Editing the Android Manifest in Android Studio

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

Gradle templates
Android 用アプリケーションのビルド
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961