Start a new topic

CommandInvokationFailure: Gradle build failed. with MiRZA

I was creating a simple project while looking at the MiRZA document below.

https://www.devices.nttqonoq.com/developer/doc/setup/setup-guide


However, I'm getting a Gradle error like below. I tried various things but could not resolve the issue. How can I resolve this?


Unity version 2022.3.11f1

Snapdragon Spaces SDK 0.23.2


■error1

CommandInvokationFailure: Gradle build failed. 

C:\Program Files\Unity\Hub\Editor\2022.3.11f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.11f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-8.10.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"


■error2

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8


FAILURE: Build failed with an exception.


* What went wrong:

Could not determine the dependencies of task ':launcher:lintVitalReportRelease'.

> Could not create task ':launcher:processReleaseMainManifest'.

   > Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

1 Comment

To resolve this issue, we recommend upgrading to version 2022.3.16 or higher, as we no longer support earlier versions. If you continue to encounter Gradle issues, please follow this link. This is a common issue with Unity Hub running multiple Unity versions.

Fix Gradle Build Error Unity Version 2022 And 2021 

Login to post a comment