- 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 get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle-core/2.3.0/gradle-core-2.3.0.jar'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle-core/2.3.0/gradle-core-2.3.0.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not resolve all files for configuration ':classpath'. Could not download gradle-core.jar (com.android.tools.build:gradle-core:2.3.0)
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/lint/lint-checks/25.3.0/lint-checks-25.3.0.jar'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/lint/lint-checks/25.3.0/lint-checks-25.3.0.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download lint-checks.jar (com.android.tools.lint:lint-checks:25.3.0)
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/repository/25.3.0/repository-25.3.0.jar'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/repository/25.3.0/repository-25.3.0.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download repository.jar (com.android.tools:repository:25.3.0)
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/jack/jack-api/0.13.0/jack-api-0.13.0.jar'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/jack/jack-api/0.13.0/jack-api-0.13.0.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download jack-api.jar (com.android.tools.jack:jack-api:0.13.0)
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/jill/jill-api/0.10.0/jill-api-0.10.0.jar'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/jill/jill-api/0.10.0/jill-api-0.10.0.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download jill-api.jar (com.android.tools.jill:jill-api:0.10.0)
> Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.jar'. > Could not GET 'https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download bcpkix-jdk15on.jar (org.bouncycastle:bcpkix-jdk15on:1.48)
> Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.jar'. > Could not GET 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download bcprov-jdk15on.jar (org.bouncycastle:bcprov-jdk15on:1.48)
> Could not get resource 'https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.jar'. > Could not GET 'https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.6.1/ecj-4.6.1.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download ecj.jar (org.eclipse.jdt.core.compiler:ecj:4.6.1)
> Could not get resource 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar'. > Could not GET 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download jimfs.jar (com.google.jimfs:jimfs:1.1)
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.jar'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download lombok-ast.jar (com.android.tools.external.lombok:lombok-ast:0.2.3)
> Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/18.0/guava-18.0.jar'. > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/18.0/guava-18.0.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download guava.jar (com.google.guava:guava:18.0)
> Could not get resource 'https://jcenter.bintray.com/com/android/databinding/baseLibrary/2.3.0/baseLibrary-2.3.0.jar'. > Could not GET 'https://jcenter.bintray.com/com/android/databinding/baseLibrary/2.3.0/baseLibrary-2.3.0.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download baseLibrary.jar (com.android.databinding:baseLibrary:2.3.0)
> Could not get resource 'https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar'. > Could not GET 'https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould not download antlr4.jar (org.antlr:antlr4:4.5.3)
> Could not get resource 'https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.jar'. > Could not GET 'https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.jar'. > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connectCould 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