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

Cloud Build Fail (Android)

Discussion in 'Unity Build Automation' started by webjeff, Oct 21, 2020.

  1. webjeff

    webjeff

    Joined:
    Mar 11, 2015
    Posts:
    39
    Hi,

    Here's the log:
    [Unity] UnityEngine.Debug:LogWarningFormat(String, Object[])
    73: [Unity] ERROR: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    74: [Unity] ERROR: Warning: Failed to read or create install properties file.
    75: [Unity] Warning: Failed to read or create install properties file.
    76: [Unity] ERROR: Loading package information...
    77: [Unity] ERROR: Loading local repository...
    78: [Unity] ERROR: [ ] 3% Loading local repository...
    79: [Unity] ERROR: [ ] 3% Fetch remote repository...
    80: [Unity] ERROR: [ ] 3% Fetch remote repository...
    81: [Unity] ERROR: [= ] 3% Fetch remote repository...
    82: [Unity] ERROR: [= ] 3% Fetch remote repository...
    83: [Unity] ERROR: [= ] 3% Fetch remote repository...
    84: [Unity] ERROR: [= ] 3% Fetch remote repository...
    85: [Unity] ERROR: [= ] 3% Fetch remote repository...
    86: [Unity] ERROR: [= ] 3% Fetch remote repository...
    87: [Unity] ERROR: [= ] 3% Fetch remote repository...
    88: [Unity] ERROR: [= ] 3% Fetch remote repository...
    89: [Unity] ERROR: [= ] 3% Fetch remote repository...
    90: [Unity] ERROR: [= ] 4% Fetch remote repository...
    91: [Unity] ERROR: [= ] 4% Fetch remote repository...
    92: [Unity] ERROR: [= ] 4% Fetch remote repository...
    93: [Unity] ERROR: [= ] 4% Fetch remote repository...
    94: [Unity] ERROR: [= ] 4% Fetch remote repository...
    95: [Unity] ERROR: [= ] 4% Fetch remote repository...
    96: [Unity] ERROR: [= ] 4% Fetch remote repository...
    97: [Unity] ERROR: [= ] 4% Fetch remote repository...
    98: [Unity] ERROR: [= ] 4% Fetch remote repository...
    99: [Unity] ERROR: [= ] 4% Fetch remote repository...
    100: [Unity] ERROR: [= ] 4% Fetch remote repository...
    101: [Unity] ERROR: [= ] 4% Fetch remote repository...
    102: [Unity] ERROR: [== ] 5% Fetch remote repository...
    103: [Unity] ERROR: [== ] 6% Fetch remote repository...
    104: [Unity] ERROR: [== ] 6% Computing updates...
    105: [Unity] ERROR: [=== ] 8% Computing updates...
    106: [Unity] ERROR: [=== ] 8% Computing updates...
    107: [Unity] ERROR: [=== ] 10% Computing updates...
    108: [Unity] ERROR: [=== ] 10% Installing Android SDK Platform 30
    109: [Unity] ERROR:
    110: [Unity] ERROR: [=== ] 10% Installing Android SDK Platform 30
    111: [Unity] Warning: Failed to read or create install properties file.
    112: [Unity] Warning: Failed to read or create install properties file.
    113: [Unity] at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00033] in <5f8140421e7d41ada100b629c3033aa7>:0
    114: [Unity] at UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, System.String errorMsg, System.Collections.Generic.IEnumerable`1[T] input) [0x00078] in <5f8140421e7d41ada100b629c3033aa7>:0
    115: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg, System.String toolsDir, System.String[] warningsToIgnore) [0x0005f] in <5f8140421e7d41ada100b629c3033aa7>:0
    116: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg) [0x00001] in <5f8140421e7d41ada100b629c3033aa7>:0
    117: [Unity] Finished exporting player successfully.
    118: ! build of 'default-android' failed. ! build failed - export directory is empty!
    119: publishing finished successfully.
    120: Finished: FAILURE


    I had this locally and it was a permissions issue - I had to run in administrator mode. What can I do to fix this in the cloud build though?!?

    Any thoughts?
     
  2. webjeff

    webjeff

    Joined:
    Mar 11, 2015
    Posts:
    39
    @ollieblanks Any thoughts? Do you need to update the tools on the cloud build servers?
     
  3. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    459
    Unfortunately, SDK versions cannot be managed on Cloud Build. We are currently in the process of testing and deploying Android SDK 30.0.2 to the service, so it should not be long until this is available. I'll track progress and loop back here when it's ready.
     
    SkyLimitStudio and webjeff like this.
  4. dirty-rectangle

    dirty-rectangle

    Joined:
    Apr 23, 2015
    Posts:
    78
    @ollieblanks Can you give a progress update on the deployment of this SDK?
     
  5. jjaros

    jjaros

    Joined:
    Jun 18, 2015
    Posts:
    7
    it started to happen again:

    [Unity] ERROR: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    2381: [Unity] ERROR: Warning: Failed to read or create install properties file.
    2382: [Unity] Warning: Failed to read or create install properties file.
    2383: [Unity] ERROR: Loading package information...
    2384: [Unity] ERROR: Loading local repository...
    2385: [Unity] ERROR: [ ] 3% Loading local repository...
    2386: [Unity] ERROR: [ ] 3% Fetch remote repository...
    2387: [Unity] ERROR: [ ] 3% Fetch remote repository...
    2388: [Unity] ERROR: [= ] 3% Fetch remote repository...
    2389: [Unity] ERROR: [= ] 3% Fetch remote repository...
    2390: [Unity] ERROR: [= ] 3% Fetch remote repository...
    2391: [Unity] ERROR: [= ] 3% Fetch remote repository...
    2392: [Unity] ERROR: [= ] 3% Fetch remote repository...
    2393: [Unity] ERROR: [= ] 3% Fetch remote repository...
    2394: [Unity] ERROR: [= ] 3% Fetch remote repository...
    2395: [Unity] ERROR: [= ] 3% Fetch remote repository...
    2396: [Unity] ERROR: [= ] 3% Fetch remote repository...
    2397: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2398: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2399: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2400: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2401: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2402: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2403: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2404: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2405: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2406: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2407: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2408: [Unity] ERROR: [= ] 4% Fetch remote repository...
    2409: [Unity] ERROR: [== ] 5% Fetch remote repository...
    2410: [Unity] ERROR: [== ] 6% Fetch remote repository...
    2411: [Unity] ERROR: [== ] 6% Computing updates...
    2412: [Unity] ERROR: [=== ] 8% Computing updates...
    2413: [Unity] ERROR: [=== ] 8% Computing updates...
    2414: [Unity] ERROR: [=== ] 10% Computing updates...
    2415: [Unity] ERROR: [=== ] 10% Installing Android SDK Platform-To
    2416: [Unity] ERROR:
    2417: [Unity] ERROR: [=== ] 10% Installing Android SDK Platform-To
    2418: [Unity] Warning: Failed to read or create install properties file.
    2419: [Unity] Warning: Failed to read or create install properties file.
    2420: [Unity] at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00031] in <1e5e55a0ebac44e989773ba5d6df4794>:0
    2421: [Unity] at UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, System.String errorMsg, System.Collections.Generic.IEnumerable`1[T] input) [0x00084] in <1e5e55a0ebac44e989773ba5d6df4794>:0
    2422: [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
    2423: [Unity] at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg) [0x00001] in <1e5e55a0ebac44e989773ba5d6df4794>:0
    2424: [Unity] Finished exporting player successfully.
    2425: ! build of 'freemium-freemium-server-android' failed. ! build failed - export directory is empty!
    2426: publishing finished successfully.
    2427: Finished: FAILURE
     
    dan_ginovker likes this.
  6. sperepel

    sperepel

    Joined:
    Jul 29, 2016
    Posts:
    17
    We are experiencing the same issue! Please help
     
    dan_ginovker likes this.
  7. hodgepodge_games

    hodgepodge_games

    Joined:
    Sep 21, 2021
    Posts:
    1
    This just started happening to me as well, my iOS builds are working fine but Android is always failing
     
  8. rajivrao

    rajivrao

    Unity Technologies

    Joined:
    Feb 19, 2019
    Posts:
    111
    Hi folks, if you haven't, would recommend submitting support tickets for these issues. Fastest way to get the team to take a look at the issue and see what commonalities there are. If you've already submitted let me know and I can get some follow up from the team.
     
  9. matheus_inmotionvr

    matheus_inmotionvr

    Joined:
    Oct 3, 2018
    Posts:
    58
    Any updates on this problem? I'm facing the same issue on Unity 2021.3.16 and Unity Cloud Build, while trying to install SDK 31.

    I'm also getting
    Update: the problem was fixed by manually setting the Android SDK on the cloud build config.
     
    Last edited: Dec 16, 2022