Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Android build fails [2018.3b7]: Unable to update the SDK

Discussion in 'Unity Build Automation' started by MasoInar, Oct 30, 2018.

Thread Status:
Not open for further replies.
  1. MasoInar

    MasoInar

    Joined:
    Feb 20, 2014
    Posts:
    125
    Hi,

    I'm using Unity 2018.3b7 and android build fails with this message:

    3660: [Unity] Detected outdated SDK Build Tools version 28.0.2 when the min version is 28.0.3
    3661: Launching external process: /UNITY_PATH/Unity/Unity-2018_3_0b7/Unity.app/Contents/Tools/UnityShaderCompiler
    3662: [Unity] EXCEPTION: 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.
    3663: [Unity] /UNITY_PATH/Unity/android/sdk_28/tools/bin/sdkmanager tools platform-tools "build-tools;28.0.3"
    3664: [Unity] stderr[
    3665: [Unity] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    3666: [Unity] Warning: File /BUILD_PATH/.android/repositories.cfg could not be loaded.
    3667: [Unity] Warning: Failed to read or create install properties file.
    3668: [Unity] ]
    3669: [Unity] stdout[
    3670: [Unity] Loading package information...
    3671: [Unity] Loading local repository...
    3672: [Unity] [ ] 3% Loading local repository...
    3673: [Unity] [ ] 3% Fetch remote repository...
    3674: [Unity] [ ] 3% Fetch remote repository...
    3675: [Unity] [= ] 3% Fetch remote repository...

    --- snipped some download information

    3752: [Unity] [=== ] 10% Installing Android SDK Build-Tools
    3753: [Unity] [=== ] 10% Installing Android SDK Build-Tools
    3754: [Unity] ]
    3755: [Unity] exit code: 1
    3756: [Unity] at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00031] in <c20938b27270486da108dbf5415cc818>:0
    3757: [Unity] at UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, System.String errorMsg, System.Collections.Generic.IEnumerable`1[T] input) [0x00084] in <c20938b27270486da108dbf5415cc818>:0
    3758: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg, System.String toolsDir) [0x0005b] in <c20938b27270486da108dbf5415cc818>:0
    3759: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg) [0x00001] in <c20938b27270486da108dbf5415cc818>:0
    3760: [Unity] at UnityEditor.Android.AndroidSDKTools.UpdateSDK (UnityEditor.Android.AndroidJavaTools javaTools) [0x00088] in <c20938b27270486da108dbf5415cc818>:0
    3761: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector.Update (UnityEditor.Android.AndroidSDKTools sdkTools, UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.ProgressHandler onProgress) [0x0001a] in <c20938b27270486da108dbf5415cc818>:0
    3762: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) [0x00081] in <c20938b27270486da108dbf5415cc818>:0
    3763: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x002ac] in <c20938b27270486da108dbf5415cc818>:0
    3764: [Unity] at UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00074] in <c20938b27270486da108dbf5415cc818>:0
    3765: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    It is telling you the exact cause of error in the beginning of the message:
    For some reason (maybe it's the latest beta requirements?) it says that it requires build tools version 28.0.3.
    you could try to navigate to the path you configured as your Android SDK path, and see if you have build-tools version 28.0.3 there (or verify what's the latest version you have there).

    Try to install build-tools 28.0.3 (can be done through Android studio or maybe via command line) and then see if the error persists.
     
  3. MasoInar

    MasoInar

    Joined:
    Feb 20, 2014
    Posts:
    125
    Hi, It works fine on my local machines.. Problem is only in Cloud build.. Just tested with b8 and problem still exists. With internal and gradle build systems.
     
  4. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    why does it say that the min version is 28.0.3 ? is this something that you have set up in your project or something ?
     
  5. MasoInar

    MasoInar

    Joined:
    Feb 20, 2014
    Posts:
    125
    That's a good question.

    I have left the Target API Level setting to default 'Automatic (highest installed)', but nowhere I have set it to that specific version.. Maybe I try to manually set it some lower and try it with that or maybe it has something to do with 2018.3 beta, because my other 'real' project using 2018.2, cloud build works fine with same settings.
     
  6. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Do you have the build log? it should show which versions of the android build tools and other options it selected (look for build-tools in the build log).
     
  7. Noxalus

    Noxalus

    Joined:
    Jan 9, 2018
    Posts:
    80
    I have the same issue with Unity Cloud Build service too! My target API is also set to "Highest installed" and I'm using Unity 2018.3.0b9. My builds fail since at least Unity 2018.3.0b8 (and it was working fine with Unity 2018.3.0b6).

    Did you find any solution to this problem?
     
    Last edited: Nov 11, 2018
  8. Noxalus

    Noxalus

    Joined:
    Jan 9, 2018
    Posts:
    80
    As said in this topic, it's definitly related to the needed update of the Android SDK build tools. Here is my logs:

    3154: [Unity] DisplayProgressbar: Detecting Android SDK
    3155: [Unity] Detected outdated SDK Build Tools version 28.0.2 when the min version is 28.0.3
    3156: Launching external process: /UNITY_PATH/Unity/Unity-2018_3_0b8/Unity.app/Contents/Tools/UnityShaderCompiler
    3157: [Unity] EXCEPTION: 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.
    3158: [Unity] /UNITY_PATH/Unity/android/sdk_28/tools/bin/sdkmanager tools platform-tools "build-tools;28.0.3"
    3159: [Unity] stderr[
    3160: [Unity] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    3161: [Unity] Warning: File /BUILD_PATH/.android/repositories.cfg could not be loaded.
    3162: [Unity] Warning: Failed to read or create install properties file.
    3163: [Unity] ]
    3164: [Unity] stdout[
    3165: [Unity] Loading package information...
    3166: [Unity] Loading local repository...
    3167: [Unity] [ ] 3% Loading local repository...
    3168: [Unity] [ ] 3% Fetch remote repository...
    3169: [Unity] [ ] 3% Fetch remote repository...
    3170: [Unity] [= ] 3% Fetch remote repository...
    3171: [Unity] [= ] 3% Fetch remote repository...
    3172: [Unity] [= ] 3% Fetch remote repository...
    3173: [Unity] [= ] 3% Fetch remote repository...
    3174: [Unity] [= ] 3% Fetch remote repository...
    3175: [Unity] [= ] 3% Fetch remote repository...
    3176: [Unity] [= ] 3% Fetch remote repository...
    3177: [Unity] [= ] 3% Fetch remote repository...
    3178: [Unity] [= ] 3% Fetch remote repository...
    3179: [Unity] [= ] 3% Fetch remote repository...
    3180: [Unity] [= ] 3% Fetch remote repository...
    3181: [Unity] [= ] 4% Fetch remote repository...
    3182: [Unity] [= ] 4% Fetch remote repository...
    3183: [Unity] [= ] 4% Fetch remote repository...
    3184: [Unity] [= ] 4% Fetch remote repository...
    3185: [Unity] [= ] 4% Fetch remote repository...
    3186: [Unity] [= ] 4% Fetch remote repository...
    3187: [Unity] [= ] 4% Fetch remote repository...
    3188: [Unity] [= ] 4% Fetch remote repository...
    3189: [Unity] [= ] 4% Fetch remote repository...
    3190: [Unity] [== ] 5% Fetch remote repository...
    3191: [Unity] [== ] 6% Fetch remote repository...
    3192: [Unity] [== ] 6% Computing updates...
    3193: [Unity] [=== ] 8% Computing updates...
    3194: [Unity] [=== ] 8% Computing updates...
    3195: [Unity] [=== ] 10% Computing updates...
    3196: [Unity] [=== ] 10% Installing Android SDK Build-Tools
    3197: [Unity] [=== ] 10% Installing Android SDK Build-Tools
    3198: [Unity] ]
    3199: [Unity] exit code: 1
    3200: [Unity] UnityEngine.DebugLogHandler:Internal_Log()
    3201: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    3202: [Unity] UnityEngine.Logger:Log(LogType, Object)
    3203: [Unity] UnityEngine.Debug:Log(Object)
    3204: [Unity] UnityEditor.CloudBuild.BuildLogger:Log(String)
    3205: [Unity] UnityEditor.CloudBuild.BuildLogger:HighlightUnityErrors(String, String, LogType)
    3206: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck()
    3207: [Unity] UnityEditor.CloudBuild.Builder:Build()
    3208: [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.
    3209: [Unity] /UNITY_PATH/Unity/android/sdk_28/tools/bin/sdkmanager tools platform-tools "build-tools;28.0.3"
    3210: [Unity] stderr[
    3211: [Unity] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    3212: [Unity] Warning: File /BUILD_PATH/.android/repositories.cfg could not be loaded.
    3213: [Unity] Warning: Failed to read or create install properties file.
    3214: [Unity] ]
    3215: [Unity] stdout[
    3216: [Unity] Loading package information...
    3217: [Unity] Loading local repository...
    3218: [Unity] [ ] 3% Loading local repository...
    3219: [Unity] [ ] 3% Fetch remote repository...
    3220: [Unity] [ ] 3% Fetch remote repository...
    3221: [Unity] [= ] 3% Fetch remote repository...
    3222: [Unity] [= ] 3% Fetch remote repository...
    3223: [Unity] [= ] 3% Fetch remote repository...
    3224: [Unity] [= ] 3% Fetch remote repository...
    3225: [Unity] [= ] 3% Fetch remote repository...
    3226: [Unity] [= ] 3% Fetch remote repository...
    3227: [Unity] [= ] 3% Fetch remote repository...
    3228: [Unity] [= ] 3% Fetch remote repository...
    3229: [Unity] [= ] 3% Fetch remote repository...
    3230: [Unity] [= ] 3% Fetch remote repository...
    3231: [Unity] [= ] 3% Fetch remote repository...
    3232: [Unity] [= ] 4% Fetch remote repository...
    3233: [Unity] [= ] 4% Fetch remote repository...
    3234: [Unity] [= ] 4% Fetch remote repository...
    3235: [Unity] [= ] 4% Fetch remote repository...
    3236: [Unity] [= ] 4% Fetch remote repository...
    3237: [Unity] [= ] 4% Fetch remote repository...
    3238: [Unity] [= ] 4% Fetch remote repository...
    3239: [Unity] [= ] 4% Fetch remote repository...
    3240: [Unity] [= ] 4% Fetch remote repository...
    3241: [Unity] [== ] 5% Fetch remote repository...
    3242: [Unity] [== ] 6% Fetch remote repository...
    3243: [Unity] [== ] 6% Computing updates...
    3244: [Unity] [=== ] 8% Computing updates...
    3245: [Unity] [=== ] 8% Computing updates...
    3246: [Unity] [=== ] 10% Computing updates...
    3247: [Unity] [=== ] 10% Installing Android SDK Build-Tools
    3248: [Unity] [=== ] 10% Installing Android SDK Build-Tools
    3249: [Unity] ]
    3250: [Unity] exit code: 1
    3251: [Unity] at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00031] in <c20938b27270486da108dbf5415cc818>:0
    3252: [Unity] at UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, System.String errorMsg, System.Collections.Generic.IEnumerable`1[T] input) [0x00084] in <c20938b27270486da108dbf5415cc818>:0
    3253: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg, System.String toolsDir) [0x0005b] in <c20938b27270486da108dbf5415cc818>:0
    3254: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg) [0x00001] in <c20938b27270486da108dbf5415cc818>:0
    3255: [Unity] at UnityEditor.Android.AndroidSDKTools.UpdateSDK (UnityEditor.Android.AndroidJavaTools javaTools) [0x00088] in <c20938b27270486da108dbf5415cc818>:0
    3256: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector.Update (UnityEditor.Android.AndroidSDKTools sdkTools, UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.ProgressHandler onProgress) [0x0001a] in <c20938b27270486da108dbf5415cc818>:0
    3257: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) [0x00081] in <c20938b27270486da108dbf5415cc818>:0
    3258: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x002ac] in <c20938b27270486da108dbf5415cc818>:0
    3259: [Unity] at UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00074] in <c20938b27270486da108dbf5415cc818>:0

    From what I see, it's possible it failed to update the build tools because it can't create the
    .android/repositories.cfg file.
     
  9. Noxalus

    Noxalus

    Joined:
    Jan 9, 2018
    Posts:
    80
    I've just tried to set a fixed version of the Android target API with Pie (API 28) and even Oreo (API 27), but Unity Cloud Build service still tries to update the build tools for API 28, don't really know why...
     
    Last edited: Nov 12, 2018
  10. rjevans

    rjevans

    Joined:
    Sep 24, 2010
    Posts:
    24
    Just tried to set up a brand new android project with cloud build and 2018.3b9 and I'm hitting this issue as well
     
    Noxalus likes this.
  11. Noxalus

    Noxalus

    Joined:
    Jan 9, 2018
    Posts:
    80
    Visibly, we can't install multiple Android build tools for the same major version of the SDK. So to install the 28.0.3, it needs to uninstall the 28.0.2 before. We don't really have the control over the server environment with Unity Cloud Build, and I think we need to wait until they update their servers.
     
  12. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    459
    Thanks for reporting this!

    We have now updated the Android SDK tools for all of the 2018.3 betas and you should no longer be experiencing this issue.

    Hope that helps. Happy building!
     
    rjevans and Noxalus like this.
  13. Noxalus

    Noxalus

    Joined:
    Jan 9, 2018
    Posts:
    80
    I confirm it's good for me now, thank you very much ;)
     
  14. MasoInar

    MasoInar

    Joined:
    Feb 20, 2014
    Posts:
    125
    Yeah, seems to work again. Thanks
     
  15. rjevans

    rjevans

    Joined:
    Sep 24, 2010
    Posts:
    24
    Fixed my issue as well. Thank you!
     
  16. Dynameter

    Dynameter

    Joined:
    Dec 12, 2015
    Posts:
    2
    Is the updated SDK available for older Unity versions? I am currently using Unity 2017.4.15f1 and need to target Android Pie. However, it seems that it's having difficulties downloading the SDK which causes the build to fail.
     
  17. thibouf

    thibouf

    Joined:
    Mar 17, 2017
    Posts:
    105
    Hey same problem here with 2018.2.16 ... (So not fixed for Unity 2018.2.X :/ )

    The error :


    CommandInvokationFailure: Unable to install additional SDK platform. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed.
    3945: [Unity] /UNITY_PATH/Unity/android/sdk_latest/tools/bin/sdkmanager "platforms;android-26"
    3946: [Unity] stderr[
    3947: [Unity] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    3948: [Unity] Warning: Observed package id 'platforms;android-28' in inconsistent location '/UNITY_PATH/Unity/android/sdk_11282017_new_tools/platforms' (Expected '/UNITY_PATH/Unity/android/sdk_11282017_new_tools/platforms/android-28')
    3949: [Unity] Warning: Observed package id 'platforms;android-28' in inconsistent location '/UNITY_PATH/Unity/android/sdk_11282017_new_tools/platforms' (Expected '/UNITY_PATH/Unity/android/sdk_11282017_new_tools/platforms/android-28')
    3950: [Unity] Warning: File /BUILD_PATH/.android/repositories.cfg could not be loaded.
    3951: [Unity] Warning: Failed to read or create install properties file.
    3952: [Unity] ]
    3953: [Unity] stdout[
    3954: [Unity] Loading package information...
    3955: [Unity] Loading local repository...
    3956: [Unity] [ ] 3% Loading local repository...
    3957: [Unity] [ ] 3% Fetch remote repository...
    3958: [Unity] [ ] 3% Fetch remote repository...
    3959: [Unity] [= ] 3% Fetch remote repository...
    3960: [Unity] [= ] 3% Fetch remote repository...
    3961: [Unity] [= ] 3% Fetch remote repository...
    3962: [Unity] [= ] 3% Fetch remote repository...
    3963: [Unity] [= ] 3% Fetch remote repository...
    3964: [Unity] [= ] 3% Fetch remote repository...
    3965: [Unity] [= ] 3% Fetch remote repository...
    3966: [Unity] [= ] 3% Fetch remote repository...
    3967: [Unity] [= ] 3% Fetch remote repository...
    3968: [Unity] [= ] 3% Fetch remote repository...
    3969: [Unity] [= ] 3% Fetch remote repository...
    3970: [Unity] [= ] 4% Fetch remote repository...
    3971: [Unity] [= ] 4% Fetch remote repository...
    3972: [Unity] [= ] 4% Fetch remote repository...
    3973: [Unity] [= ] 4% Fetch remote repository...
    3974: [Unity] [= ] 4% Fetch remote repository...
    3975: [Unity] [= ] 4% Fetch remote repository...
    3976: [Unity] [= ] 4% Fetch remote repository...
    3977: [Unity] [= ] 4% Fetch remote repository...
    3978: [Unity] [= ] 4% Fetch remote repository...
    3979: [Unity] [== ] 5% Fetch remote repository...
    3980: [Unity] [== ] 6% Fetch remote repository...
    3981: [Unity] [== ] 6% Computing updates...
    3982: [Unity] [=== ] 8% Computing updates...
    3983: [Unity] [=== ] 8% Computing updates...
    3984: [Unity] [=== ] 10% Computing updates...
    3985: [Unity] [=== ] 10% Installing Android SDK Platform 26
    3986: [Unity] [=== ] 10% Installing Android SDK Platform 26
    3987: [Unity] ]
    3988: [Unity] exit code: 1
    3989: [Unity] at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00031] in <88edc2c3d52c431ca64da37d556b038f>:0
    3990: [Unity] at UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg, System.String[] input) [0x00065] in <88edc2c3d52c431ca64da37d556b038f>:0
    3991: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x0005d] in <88edc2c3d52c431ca64da37d556b038f>:0
    3992: [Unity] at UnityEditor.Android.AndroidSDKTools.InstallPlatform (UnityEditor.Android.AndroidJavaTools javaTools, System.Int32 apiLevel, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit) [0x0001f] in <88edc2c3d52c431ca64da37d556b038f>:0
    3993: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKPlatformDetector.Update (UnityEditor.Android.AndroidSDKTools sdkTools, UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.ProgressHandler onProgress) [0x00032] in <88edc2c3d52c431ca64da37d556b038f>:0
    3994: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) [0x00081] in <88edc2c3d52c431ca64da37d556b038f>:0
    3995: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (UnityEditor.Android.AndroidJavaTools javaTools, System.Int32 minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) [0x0000b] in <88edc2c3d52c431ca64da37d556b038f>:0
    3996: [Unity] at UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x000ee] in <88edc2c3d52c431ca64da37d556b038f>:0
    3997: [Unity] at UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00074] in <88edc2c3d52c431ca64da37d556b038f>:0
    3998: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck()
     
  18. smithmj5

    smithmj5

    Joined:
    May 24, 2013
    Posts:
    143
    @ollieblanks Same problem with Unity 2017.4.3f1, just started happening today as far as I can tell:

    Code (CSharp):
    1.  
    2. 28007: [Unity] [===                                    ] 10% Computing updates...            
    3. 28008: [Unity] [===                                    ] 10% Installing Android SDK Platform 23
    4. 28009: [Unity] [===                                    ] 10% Installing Android SDK Platform 23
    5. 28010: [Unity] ]
    6. 28011: [Unity] exit code: 1
    7. 28012: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    8. 28013: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    9. 28014: [Unity] UnityEngine.Logger:Log(LogType, Object)
    10. 28015: [Unity] UnityEngine.Debug:Log(Object)
    11. 28016: [Unity] UnityEditor.CloudBuild.BuildLogger:Log(String)
    12. 28017: [Unity] UnityEditor.CloudBuild.BuildLogger:HighlightUnityErrors(String, String, LogType)
    13. 28018: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
    14. 28019: [Unity] UnityEditor.CloudBuild.Builder:Build()
    15. 28020: [Unity] CommandInvokationFailure: Unable to install additional SDK platform. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed.
    16. 28021: [Unity] /UNITY_PATH/Unity/android/sdk_latest/tools/bin/sdkmanager "platforms;android-23"
    17. 28022: [Unity] stderr[
    18. 28023: [Unity] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    19. 28024: [Unity] Warning: Observed package id 'platforms;android-28' in inconsistent location '/UNITY_PATH/Unity/android/sdk_11282017_new_tools/platforms' (Expected '/UNITY_PATH/Unity/android/sdk_11282017_new_tools/platforms/android-28')
    20. 28025: [Unity] Warning: Observed package id 'platforms;android-28' in inconsistent location '/UNITY_PATH/Unity/android/sdk_11282017_new_tools/platforms' (Expected '/UNITY_PATH/Unity/android/sdk_11282017_new_tools/platforms/android-28'
     
  19. SimuSkippy

    SimuSkippy

    Joined:
    Oct 3, 2016
    Posts:
    20
    I'm suddenly having this error on all of my Android cloud build projects. I've tried API level highest, 27 and 26.

    I've tried building against 2017.4.18f1 and 2017.4.16f1.

    Also, iOS builds are succeeding, but much slower than they were last week.
     
  20. DaWiHs

    DaWiHs

    Joined:
    Apr 4, 2018
    Posts:
    1
    Yo, I had common problem, Error looked like:

    D:/Program Files/sdk-tools-windows-4333796\tempToolsDir\bin\sdkmanager.bat --sdk_root=D:/Program Files/sdk-tools-windows-4333796 tools platform-tools "build-tools;28.0.3"



    stderr[
    Warning: Failed to find package Files/sdk-tools-windows-4333796
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    ]


    Code (CSharp):
    1. stdout[
    2. Loading package information...                                                
    3. Loading local repository...                                                    
    4. [                                       ] 3% Loading local repository...      
    5. [                                       ] 3% Fetch remote repository...        
    6. [                                       ] 3% Fetch remote repository...        
    7. [=                                      ] 3% Fetch remote repository...        
    8. [=                                      ] 4% Fetch remote repository...
    9. [==                                     ] 6% Fetch remote repository...        
    10. [==                                     ] 6% Computing updates...              
    11. [===                                    ] 8% Computing updates...              
    12. [===                                    ] 8% Computing updates...              
    13. [===                                    ] 10% Computing updates...            
    14.                                                                                
    15. [===                                    ] 10% Computing updates...            
    16. ]
    17. exit code: 1
    18. UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <67e4f96bbb8d486db6550813353bb5eb>:0)
    As I had sdk-tools-windows in D:/Program Files/sdk-... when trying to update, it turned out that that little spacebar there messed up everything.
    So sdkmanager.bat were trying to acces --sdk_root=D:/Program and Files/sdk-tools-windows-4333796 separately.

    As a solution I simply moved it to the place with no spaces in names. That solved the problem for me.
    Regards.
    ~DaWiHs
     
  21. Alxander_Watson

    Alxander_Watson

    Joined:
    Mar 11, 2017
    Posts:
    16
    I'm getting a similar error.

    Code (CSharp):
    1. CommandInvokationFailure: Unable to install additional SDK platform. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed.
    2. C:/Program Files/Unity/Hub/Editor/2019.3.12f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK\tools\bin\sdkmanager.bat "platforms;android-30"
    3.  
    4. stderr[
    5. Warning: Failed to read or create install properties file.
    6. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    7. ]
    8. stdout[
    9. Loading package information...                                                
    10. Loading local repository...                                                    
    11. [                                       ] 3% Loading local repository...      
    12. [                                       ] 3% Fetch remote repository...        
    13. [                                       ] 3% Fetch remote repository...        
    14. [=                                      ] 3% Fetch remote repository...        
    15. [=                                      ] 4% Fetch remote repository...        
    16. [=                                      ] 4% Fetch remote repository...        
    17. [=                                      ] 5% Fetch remote repository...        
    18. [=                                      ] 5% Fetch remote repository...        
    19. [=                                      ] 5% Fetch remote repository...        
    20. [=                                      ] 5% Fetch remote repository...        
    21. [=                                      ] 5% Fetch remote repository...        
    22. [=                                      ] 5% Fetch remote repository...        
    23. [==                                     ] 5% Fetch remote repository...        
    24. [==                                     ] 5% Fetch remote repository...        
    25. [==                                     ] 5% Fetch remote repository...        
    26. [==                                     ] 5% Fetch remote repository...        
    27. [==                                     ] 5% Fetch remote repository...        
    28. [==                                     ] 5% Fetch remote repository...        
    29. [==                                     ] 5% Fetch remote repository...        
    30. [==                                     ] 6% Fetch remote repository...        
    31. [==                                     ] 6% Fetch remote repository...        
    32. [==                                     ] 6% Fetch remote repository...        
    33. [==                                     ] 6% Fetch remote repository...        
    34. [==                                     ] 6% Fetch remote repository...        
    35. [==                                     ] 6% Fetch remote repository...        
    36. [==                                     ] 6% Fetch remote repository...        
    37. [==                                     ] 6% Computing updates...              
    38. [===                                    ] 8% Computing updates...              
    39. [===                                    ] 8% Computing updates...              
    40. [===                                    ] 10% Computing updates...


    I've tried running it manually it brings up the license agreement before immediately closing.
     
  22. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    Closing this thread since these more recent reports are all unrelated to Unity Cloud Build. Please use the Android forums if you are experiencing issues with local Android builds.
     
Thread Status:
Not open for further replies.