

If Android isn’t the current Build target, select it in the Platform list, then select the Switch Platform button.

To build a Gradle project, follow these steps: Building an output package (.aab), see Android developer documentation on Android app bundles.Building an output package (.apk), see Android developer documentation on configuring your build.aab) in Unity, or export a Gradle project from Unity, and then build it with an external tool such as Android Studio. You can either build the output package (.apk. Unity uses Gradle for all Android builds.

In Unity, Gradle reduces the method reference count in DEX (Dalvik Executable format) files, which means you are less likely to come across DEX limit problems. Gradle is an Android build system that automates a number of build processes and prevents many common build errors.
