Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question Unity cloud build: Android build failure

Discussion in 'Android' started by junaidali-playvation, Jan 29, 2021.

  1. junaidali-playvation

    junaidali-playvation

    Joined:
    Sep 24, 2020
    Posts:
    3
    Hi,

    I'm using Unity 2019.1.5f1. The unity cloud build tries to update the android SDK and then fails to do so.

    I have left the Target API Level setting to default 'Automatic (highest installed)',

    Here are some of the logs:

    11822: [Unity] Detected outdated SDK Build Tools version 23.0.0 when the min version is 28.0.3
    11823: [Unity] ERROR: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    <----Skipping some logs here---->

    12827: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    12828: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    12829: [Unity] UnityEngine.Logger:Log(LogType, Object)
    12830: [Unity] UnityEngine.Debug:Log(Object)
    12831: [Unity] UnityEditor.CloudBuild.BuildLogger:Log(String)
    12832: [Unity] UnityEditor.CloudBuild.BuildLogger:HighlightUnityErrors(String, String, LogType)
    12833: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
    12834: [Unity] UnityEditor.CloudBuild.Builder:Build()
    12835: [Unity] CommandInvokationFailure: Unable to update the SDK. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed.
    12836: [Unity] /UNITY_PATH/Unity/android/sdk_30_0_2/tools/bin/sdkmanager tools platform-tools "build-tools;28.0.3"
    12837: [Unity] stderr[
    12838: [Unity] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    12839: [Unity] Warning: Failed to read or create install properties file.
    12840: [Unity] ]
    12841: [Unity] stdout[
    12842: [Unity] Loading package information...
    12843: [Unity] Loading local repository...
    12844: [Unity] [ ] 3% Loading local repository...
    12845: [Unity] [ ] 3% Fetch remote repository...

    ------> SKIPPED SOME LOGS HERE

    12870: [Unity] [== ] 6% Computing updates...
    12871: [Unity] [=== ] 8% Computing updates...
    12872: [Unity] [=== ] 8% Computing updates...
    12873: [Unity] [=== ] 10% Computing updates...
    12874: [Unity] [=== ] 10% Installing Android SDK Platform-To
    12875: [Unity] [=== ] 10% Installing Android SDK Platform-To
    12876: [Unity] ]
    12877: [Unity] exit code: 1
    12878: [Unity] at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00031] in <1e5e55a0ebac44e989773ba5d6df4794>:0
    12879: [Unity] at UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, System.String errorMsg, System.Collections.Generic.IEnumerable`1[T] input) [0x00084] in <1e5e55a0ebac44e989773ba5d6df4794>:0
    12880: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg, System.String toolsDir) [0x0005b] in <1e5e55a0ebac44e989773ba5d6df4794>:0
    12881: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg) [0x00001] in <1e5e55a0ebac44e989773ba5d6df4794>:0
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    DId you mean 2019.4.15f1 instead of 2019.1.5f1? Since 2019.1 is no longer supported.
     
  3. junaidali-playvation

    junaidali-playvation

    Joined:
    Sep 24, 2020
    Posts:
    3
    Yes, we are using 2019.1.5f

    We've decided to upgrade the project to the LTS version and then we will test the cloud build again.
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    2019.1.5f is not a LTS build.