Gradle
Last updated
Last updated
The following table shows the compatibility between Gradle version and Unity version.
2021.3.41f1+
7.5.1
7.4.2
2021.3.37f1 - 2021.3.40f1
6.7.1
4.2.2
2021.2.0b4 - 2021.3.36f1 2021.1.16f1+
6.1.1
4.0.1
2021.1 up to 2021.1.15f1
5.6.4
4.0.1
For more details, refer:
To setup the correct version of the Android Gradle plugin version -
Open baseProjectTemplate.gradle
Change the version of 'com.android.tools.build.gradle'
While building if you get Gradle Build failure, you will get multiple error logs in the unity console. There can be multiple reasons why you are getting these errors.
To get the reason you need to refer to CommandInvocationFailure in Build failed logs
JMRSDK has a dependency on SDK version 28 and hence build will fail when the minimum API version specified in project settings will be smaller than version 28.
Fix: Make sure that the minimum API level is set to 28 and the target API level is set to 34.
There are dependencies of the Gradle properties template on the base Gradle template.
Fix: Make sure to select all the publishing build settings correctly as shown in the image below.
This document does not cover manifest merger failure due to multiple manifest files injected due to third-party plugins.