Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    Dismiss Notice

2019.1.0a12 Can't find Android SDK build-tools

Discussion in '2019.1 Beta' started by Player7, Dec 17, 2018.

  1. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,350


    even preferences shows its selected as recommended... what am I missing?
     
    Last edited: Dec 17, 2018
  2. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,350
     
  3. cassandraL

    cassandraL

    Unity Technologies

    Joined:
    Dec 7, 2017
    Posts:
    61
    Hello,
    unfortunately, there is an error when installing the Android tools with the Hub. This error should be fixed in the next iteration of the Hub.
    In the meantime, could you try manually re-installing the build tools and the platforms by making sure the files can be found here:

    - build-tools:
    download from: https://dl.google.com/android/repository/build-tools_r28.0.3-windows.zip
    make sure the files are in (you might need to rename the folder):
    C:\Program Files\Unity\Hub\Editor\2019.1.0a12\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\28.0.3
    - platforms:
    download from: https://dl.google.com/android/repository/platform-28_r06.zip
    make sure the files are in (you might need to rename the folder):
    C:\Program Files\Unity\Hub\Editor\2019.1.0a12\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-28

    This should fix the first error you get about the build tools not being found.
    However, I am not sure if this will fix the path too long error. If you still encounter it, please ping here again.
     
  4. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,350
    Thanks that does actually get it working again,

    "However, I am not sure if this will fix the path too long error" no error about that shows up now.

    Still the project I was upgrading to test this on just seems to not work at all on android now, just black screen and no unity splash screen before it crashes with error "SubDx has stopped" on android. In testing an empty project on 2019.1 with android it worked fine with just a cube and the splash screen loading, so I guess it's just my old project that doesn't have any errors in editor when playing but something ain't right on android with the build.
     
    Last edited: Dec 18, 2018
  5. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,350
    With the android logcat tool.. much easier to get the logs now ...

     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    1,800
    Can you report a bug with repro project attached? for some reason you have textures with unknown format, not sure how could that happen.
     
  7. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,350
    It was an old project that I never finished, not sure from what version..anyway it's submitted.. haven't had a return email on it yet for the code/url to the report
     
  8. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,350
    ...case 1110756
     
    ekemini likes this.
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    1,800
    When you say an old version, you mean like Unity 5.x?

    Generally Unity doesn't perform well when upgrading from far away versions, like for ex., it's not advisable to upgrade from Unity 5.x right away to Unity 2019.x, you need to upgrade first to Unity 2017.x, then to Unity 2018.x and finally to Unity 2019.x
     
    optimise likes this.
  10. Player7

    Player7

    Joined:
    Oct 21, 2015
    Posts:
    1,350
    Pretty sure it was 2018.1 anyway project is uploaded
     
  11. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    412
    Good to know. Btw what is the suggested upgrade procedure for Unity 4.6.4 project? Unity 4.6.4 -> Unity 5.6.0 -> Unity 2017.3.0 -> Unity 2018.3.0?
     
  12. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,411
    The safest way is to do incremental upgrades and to go through all the major versions (-> 4.7 -> 5.0 -> 5.1 -> ...). It makes solving the issues easier as you don't get as overwhelmed with problems.
     
    optimise likes this.
  13. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    412
    :eek: OMG. That's a lot of Unity versions.
     
  14. ashik5g

    ashik5g

    Joined:
    Jun 16, 2016
    Posts:
    1
    i have same issues in latest official released unity 2019.1.0f2 and unfortunately your solution doesn't solved my problem
     
  15. mr_duke

    mr_duke

    Joined:
    Jul 19, 2013
    Posts:
    96
    I also have a question, now, wherever I do, everything dispatches me to Unity Hub, but it's hopeless, nothing works. For example I also have an Android sdk warning message.

    I open the Hub, and I see there are no buttons to download modules
    upload_2019-5-1_23-23-8.png
    then I deleted the my version, and then the button turned up, but in this case hab installs a separate 2019 version somewhere in the documents, which does not sit well with me too

    until 2019 I've done without the Hub, but today nothing works without Hub and troubles with Hub I also have
     
  16. MartinGebske

    MartinGebske

    Joined:
    Jun 18, 2013
    Posts:
    13
    Same like ashik5g. Doesn't work. Seriously, Unity. How could you mess this up? So I can't test / build / ship my Apps. For me, it's not THAT bad. Tedious yes, but not terrible. But I'm not that guy who needs to be reliable on a "working Engine" currently -> And for this project. But PLEASE fix this ASAP.
     
  17. MartinGebske

    MartinGebske

    Joined:
    Jun 18, 2013
    Posts:
    13
    Yeah, the hub is VERY crappy. Always have been since I used it the first time.
    I see that Unity wants to rip off Unreal's Launcher, which works like a charm. There's some homework to do.

    But (to end positively) I know Unity will do it right. ... hopefully ;)
     
    mr_duke likes this.
  18. helloworldgames

    helloworldgames

    Joined:
    Mar 16, 2017
    Posts:
    59
    Suffering from same issue,
    Your installer doesnt download android sdks and Hub never recognize that android sdks are missing, and when we manually download then it says its not supported.

    please provide a link in the editor so we know which is actually supported.
     
  19. helloworldgames

    helloworldgames

    Joined:
    Mar 16, 2017
    Posts:
    59
    please provide direct links for macOS based unity including ndk.
     
  20. Possum_Feet

    Possum_Feet

    Joined:
    May 15, 2018
    Posts:
    4
    I'm having the same issue, has anyone managed to solve it?
     
  21. cassandraL

    cassandraL

    Unity Technologies

    Joined:
    Dec 7, 2017
    Posts:
    61
    Hello,
    Sorry to hear some of you still have issues downloading and installing the Android SDK and NDK.
    It is true that there were some issues at the time the original poster asked about it, but it has been fixed since.
    Therefore, if you are still having issues, please report a bug using the tray menu of the Hub.
    Thank you
     
    lewis_rafter likes this.
  22. torboot11

    torboot11

    Joined:
    Jul 31, 2013
    Posts:
    2
    Any news about the issue?
    I am having it too with 2019.3.0a3
     
  23. torboot11

    torboot11

    Joined:
    Jul 31, 2013
    Posts:
    2
    Seems like I found workaround:
    running Unity Hub as Administrator (checked in Windows 10) solves the issue for me.
     
    Last edited: Jun 3, 2019