Search Unity

Android API level 29

Discussion in 'Unity Build Automation' started by Hilson, Aug 20, 2019.

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

    Hilson

    Joined:
    Mar 26, 2013
    Posts:
    7
    Hello,

    Is there an ETA when Android API level 29 will be supported with UCB?
     
    AntonZap likes this.
  2. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    233
  3. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,089
    Hi, I was wondering if there had been any progress on this yet? When I try to build with API 29 it seems to make an attempt to install the API but then fails:

    Code (CSharp):
    1. 515: [Unity] ERROR:
    2. 516: [Unity] ERROR:
    3. 517: [Unity] ERROR: January 16, 2019
    4. 518: [Unity] ERROR: ---------------------------------------
    5. 519: [Unity] ERROR: Accept? (y/N): [===                                    ] 10% Installing Android SDK Platform 29
    6. 520: [Unity] ERROR:                                                                                
    7. 521: [Unity] ERROR: [===                                    ] 10% Installing Android SDK Platform 29
    8. 522: [Unity] Warning: Failed to read or create install properties file.
    9. 523: [Unity] Warning: Failed to read or create install properties file.
    10. 524: [Unity]   at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00031] in <5557b445b4634c46b2ec8376c040bd34>:0
    11. 525: [Unity]   at UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, System.String errorMsg, System.Collections.Generic.IEnumerable`1[T] input) [0x00084] in <5557b445b4634c46b2ec8376c040bd34>:0
    12. 526: [Unity]   at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg, System.String toolsDir) [0x0005b] in <5557b445b4634c46b2ec8376c040bd34>:0
    13. 527: [Unity]   at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg) [0x00001] in <5557b445b4634c46b2ec8376c040bd34>:0
    14. 528: [Unity] Finished exporting player successfully.
    15. 529: ! build of 'android_target' failed. ! build failed - export directory is empty!
    16. 530: publishing finished successfully.
    17. 531: Finished: FAILURE
     
  4. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    Which versions of Unity are you running? I was told that API Level 29 should be enabled independent of any SDK but that was apparently incorrect information. We're currently running SDK 29 against 2019.3+ versions but I don't recommend updating to that since it is still in RC. I will try enabling SDK 29 for the versions you are running and we can see if that resolves the issue.
     
  5. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    I just updated 2018.4.13f1, 2019.1.14f1 and 2019.2.15f1 to use Android SDK 29, let me know if this helps!
     
  6. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,089
    Thanks @victorw - I'll give that a go and see how I get on!
     
  7. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,089
    Hi @victorw, sorry for the slow reply but I only just got around to trying that out. Unfortunately we still seem to get the same error even when setting the cloud config to 2019.2.15f1. Here's the error I get:

    Code (CSharp):
    1.  
    2. 1614: [Unity] ERROR: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    3. 1615: [Unity] ERROR: Warning: Failed to read or create install properties file.
    4. 1616: [Unity] Warning: Failed to read or create install properties file.
    5. 1617: [Unity] ERROR: Loading package information...                                            
    6. 1618: [Unity] ERROR: Loading local repository...                                                
    7. 1619: [Unity] ERROR: [                                       ] 3% Loading local repository...  
    8. 1620: [Unity] ERROR: [                                       ] 3% Fetch remote repository...      
    9. 1621: [Unity] ERROR: [                                       ] 3% Fetch remote repository...      
    10. 1622: [Unity] ERROR: [=                                      ] 3% Fetch remote repository...      
    11. 1623: [Unity] ERROR: [=                                      ] 3% Fetch remote repository...      
    12. 1624: [Unity] ERROR: [=                                      ] 3% Fetch remote repository...      
    13. 1625: [Unity] ERROR: [=                                      ] 3% Fetch remote repository...      
    14. ...
    15. 1651: [Unity] ERROR: [===                                    ] 10% Installing Android SDK Platform 29
    16. 1652: [Unity] Warning: Failed to read or create install properties file.
    17. 1653: [Unity] Warning: Failed to read or create install properties file.
    18. 1654: [Unity]   at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00031] in <21da158cd428404389e0b5a08ba9ea0a>:0
    19. 1655: [Unity]   at UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, System.String errorMsg, System.Collections.Generic.IEnumerable`1[T] input) [0x00084] in <21da158cd428404389e0b5a08ba9ea0a>:0
    20. 1656: [Unity]   at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg, System.String toolsDir) [0x0005b] in <21da158cd428404389e0b5a08ba9ea0a>:0
    21. 1657: [Unity]   at UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg) [0x00001] in <21da158cd428404389e0b5a08ba9ea0a>:0
    22. 1658: [Unity] Finished exporting player successfully.
    23. 1659: ! build of 'android_build' failed. ! build failed - export directory is empty!
    24. 1660: publishing finished successfully.
    25. 1661: Finished: FAILURE
    26.  
     
  8. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    Can you raise a suport ticket for that project? That way we can take a closer look at what's going wrong.
     
  9. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,089
    Thanks, I'll do that just now.
     
  10. tonemcbride

    tonemcbride

    Joined:
    Sep 7, 2010
    Posts:
    1,089
    Just a quick update to say this is working ok now in case anyone else has the same issue (fixed by @victorw and Ollie)
     
  11. realgamingart

    realgamingart

    Joined:
    Apr 10, 2014
    Posts:
    20
    Please can you tell me which minimum version for API level 29 I need to use ? Currently I am using the version of 2018.2 ..
     
  12. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    2018.2 is no longer supported (and hasn't been for over a year), for the most direct path you should upgrade to 2018.4 as this is the closest matching LTS version
     
    brandonjames444 likes this.
  13. realgamingart

    realgamingart

    Joined:
    Apr 10, 2014
    Posts:
    20
    In 2018.4.2 I am getting the API level 28. I have clicked on the automatic (highest installed ). I want the API level 29 !! please help me ???
     
  14. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    Try using a newer version of 2018.4 i.e. 2018.4.24f1. There should be no breaking changes between 2f1 and 24f1, and 2f1 is several years old so likely does not include support for API level 29. Also, it sounds like you are not using Unity Cloud Build so you will have to make sure you have updated your Android SDK to the latest version.
     
    brandonjames444 likes this.
  15. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    FYI I split off the rest of this discussion since people were discussing local builds and that would have better visibility and relevance in the Android forums. I'm also going to lock this thread since I did not see any further reports related to UCB - feel free to start a new thread or open a support ticket if you see any new issues with Android in UCB.
     
    brandonjames444 likes this.
Thread Status:
Not open for further replies.