- Home /
"CommandInvokationFailure: Gradle build failed" when building to Android
I'm trying to build a test program to Android just to see if it works (I only have one blank scene) and I keep getting this error:
CommandInvokationFailure: Gradle build failed. C:/Program Files/Java/jdk-9.0.1\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"
Answer by uhlv · Jan 18, 2018 at 12:16 PM
jdk.. use earlier version!
Thanks! I downgraded from JD$$anonymous$$ 9 to 8 and it built without errors!
I am getting this error though I have JD$$anonymous$$ 8 installed. I am getting this error when I am using One Signal Push Notification Plugin. Whenever I try to build I am getting this error.
Your answer
Follow this Question
Related Questions
Building android application 1 Answer
I have a build problem android. 0 Answers
I can't build a game for android 2 Answers
Could not find Multidex Version - Gradle Build Failed 0 Answers