- Home /
error android build
CommandInvokationFailure: Gradle build failed. C:/Program Files/Java/jdk1.8.0_172\bin\java.exe -classpath "D:\Other\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
-
Could not resolve all files for configuration ':classpath'. Could not download gradle-core.jar (com.android.tools.build:gradle-core:2.3.0)
Could not download lint-checks.jar (com.android.tools.lint:lint-checks:25.3.0)
Could not download repository.jar (com.android.tools:repository:25.3.0)
Could not download jack-api.jar (com.android.tools.jack:jack-api:0.13.0)
Could not download jill-api.jar (com.android.tools.jill:jill-api:0.10.0)
Could not download bcpkix-jdk15on.jar (org.bouncycastle:bcpkix-jdk15on:1.48)
Could not download bcprov-jdk15on.jar (org.bouncycastle:bcprov-jdk15on:1.48)
Could not download ecj.jar (org.eclipse.jdt.core.compiler:ecj:4.6.1)
Could not download jimfs.jar (com.google.jimfs:jimfs:1.1)
Could not download lombok-ast.jar (com.android.tools.external.lombok:lombok-ast:0.2.3)
Could not download guava.jar (com.google.guava:guava:18.0)
Could not download baseLibrary.jar (com.android.databinding:baseLibrary:2.3.0)
Could not download antlr4.jar (org.antlr:antlr4:4.5.3)
Could not download commons-io.jar (commons-io:commons-io:2.4)
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED in 1m 58s ] stdout[ Starting a Gradle Daemon, 2 busy Daemons could not be reused, use --status for details ] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error) UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress) Rethrow as GradleInvokationException: Gradle build failed UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Hey @mohammadzeinallpuor please don't post multiple questions with same problem. Just edit the original question, by clicking the cog icon on the right hand-side of the question, and select "Edit".
I have approved your latest post, and deleted the previous ones.
Your answer
Follow this Question
Related Questions
How to post process Unity-built dll before il2cpp kicks in? 1 Answer
Building for android freezes at scene 0 Answers
AdMob ads not working in Android Build Unity 2017.4.3f1 2 Answers
Android build not working properly 0 Answers
Android APK installation results in Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE] 0 Answers