Unity uses Gradle to build Android applications so it’s useful to understand the build process and how Unity interacts with Gradle. Gradle lets you use Player Settings and other Unity windows to configure most aspects of the final build, however for more control, you must overwrite manifest and template files, or export your project and edit it in Android Studio.
Android アプリケーションは、以下のようにビルドされます。
libil2cpp.so
library into the Gradle project.Unity は、Android 用のプレイヤーをビルドする際に インクリメンタルビルドパイプライン を使用します。Android 固有のインクリメンタルビルドパイプラインの動作に関しては、以下を参照してください。
If you implement IPostGenerateGradleAndroidProject and modify or move any Android file or asset that the incremental build pipeline uses, it can cause issues when you build your project. If you only want to modify Gradle project files, it’s best practice to use the Android Project Configuration Manager instead of IPostGenerateGradleAndroidProject
. If you must use IPostGenerateGradleAndroidProject
for your use case and need to work around incremental build pipeline issues, refer to Creating non-incremental builds.