Search Unity

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,287


    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,287
     
  3. cassandraL

    cassandraL

    Unity Technologies

    Joined:
    Dec 7, 2017
    Posts:
    60
    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,287
    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,287
    With the android logcat tool.. much easier to get the logs now ...

     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    1,775
    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,287
    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,287
    ...case 1110756
     
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    1,775
    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,287
    Pretty sure it was 2018.1 anyway project is uploaded
     
  11. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    380
    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,276
    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:
    380
    :eek: OMG. That's a lot of Unity versions.