Version: 2021.2
言語: 日本語
Gradle テンプレート
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. Edit > Project Settings の順に選択して Project Settings ウィンドウを開きます。

  2. Player タブを選択し、Android の Player 設定 を開きます。

  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 は、Android ライブラリからのマニフェストをこのメインマニフェスト内にマージし、最終的な構成が正しいことを確認します。

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 テンプレート
Android 用アプリケーションのビルド