Unity – CommandInvokationFailure: Gradle build failed

Issue All of a sudden, Gradle fails to build and throws the following error: CommandInvokationFailure: Gradle build failed. D:\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath “D:\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx4096m” “assembleRelease” stderr[ D8: Program type already present: com.unity3d.ads.BuildConfig FAILURE: Build failed with an exception. What went wrong:

Continue reading