Go to Build Settings > Android, and set Build System to Gradle to use the custom Gradle version . Go to Preferences > External Tools > Android > Gradle Installed with Unity. Clear the option, and specify a custom version of 5.6. 4 or later.
Go to Build Settings > Android, and set Build System to Gradle to use the custom Gradle version . Go to Preferences > External Tools > Android > Gradle Installed with Unity. Clear the option, and specify a custom version of 5.6. 4 or later.