Gradle project files configure different aspects of your application, such as the modules to include and how to build them.
The following table lists the__ Gradle__一套 Android 构建系统,可自动执行多种构建过程。这种自动化意味着能减少许多常见的构建错误。更多信息
See in Glossary project files that exist for Unity projects and describes the purpose of each one.
| Gradle project file | Purpose |
|---|---|
| Main Manifest | Contains important metadata about your Android application. For more information about the responsibilities of the Main/Unity Library Manifest, refer to Unity Library Manifest. |
| Unity Launcher Manifest | Contains important metadata about your Android application’s launcher. For more information, refer to Unity Launcher Manifest. |
| Main Gradle | Contains information on how to build your Android application as a library. |
| Launcher Gradle | Contains instructions on how to build your Android application. |
| Base Gradle | Contains configuration that’s shared between all other templates and Gradle projects. |
| Gradle Properties | Contains configuration settings for the Gradle build environment. This includes:
|
| Gradle Settings | Contains declaration of artifact repositories to resolve external dependencies required for your application. |
| Proguard | Contains configuration settings for the minification process. Note: If minification removes necessary Java code, add a rule in this file to keep that code. |