Search Unity

Ar foundation gradle build failed on android

Discussion in 'AR' started by Be_lla, Oct 26, 2018.

  1. Be_lla

    Be_lla

    Joined:
    Nov 23, 2016
    Posts:
    1
    Hello friends:
    i want to build on android by unity2018.2.1f1, but it has a probelm gradle failed .
    details as the follow:

    CommandInvokationFailure: Gradle build failed.
    D:/Program Files/Java/jdk1.8.0_25\bin\java.exe -classpath "D:\lzh\unity2018.2.1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.2.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"

    stderr[

    FAILURE: Build failed with an exception.

    • What went wrong:
      A problem occurred configuring root project 'gradleOut'.
    Could not resolve all files for configuration ':classpath'.
    Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1).
    Searched in the following locations:
    https://jcenter.bintray.com/com/and...intellij-core/26.0.1/intellij-core-26.0.1.jar

    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    • Get more help at https://help.gradle.org
    BUILD FAILED in 0s
    ]
    stdout[

    ]
    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.Action1 progress, System.String error) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action1 progress)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, 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)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

    and i try to open the link :https://jcenter.bintray.com/com/and...intellij-core/26.0.1/intellij-core-26.0.1.jar
    it shows like this:
    {
    "errors" : [ {
    "status" : 404,
    "message" : "Could not find resource"
    } ]
    }

    i am doubting of how to fix these.

    hope for your feedback
     
  2. GreeneMachine

    GreeneMachine

    Joined:
    Jul 3, 2015
    Posts:
    126