Search Unity

Please make android SDK downloadable without the hub

Discussion in 'Unity Hub' started by Yukken, Apr 18, 2019.

  1. yahiaanum

    yahiaanum

    Joined:
    Jul 19, 2020
    Posts:
    2
    Please what version of NDK we need in Unity version (2020.3.4f1 or Unity 2021.1.3f1.)
     
    Last edited: Apr 16, 2021
  2. dm_bond

    dm_bond

    Joined:
    Sep 19, 2011
    Posts:
    62
  3. gamerjustin

    gamerjustin

    Joined:
    Nov 8, 2018
    Posts:
    1
    I can't believe this is still an issue in 2021. If you want us to only use the Unity Hub to install, that's fine I suppose - but, at least allow us to install any version via the hub. Upgrading our project to the latest iteration of 2019.4 isn't possible at the moment - I need to use a specific version and I can't install this via the hub, so, I also can't have it automatically install the proper versions of the SDK/NDK/OpenJDK. Please fix this or give us a reliable workaround to setup properly for all Unity versions. This is paid software - having an issue like this go on for so long is entirely unacceptable. It took a decent amount of googling to find this forum thread to come up with a valid solution.

    Here's what I did as a workaround: I installed a separate copy of of the latest 2019.4 from the hub, browsed to C:\Program Files\Unity\Hub\Editor\2019.4.26f1\Editor\Data\PlaybackEngines\AndroidPlayer and then copied the folders SDK, NDK, and OpenJDK over to my correct older Unity install. Luckily these versions seem compatible with my 2019.4.16f1.
     
  4. dm_bond

    dm_bond

    Joined:
    Sep 19, 2011
    Posts:
    62
    But you can install any version via the Hub. Use the link from the Release Notes ("Install this version with Unity Hub.") or generate it yourself, such as unityhub://2017.1.1f1/5d30cf096e79 that is unityhub://version/revision (changeset). Copy and paste the link into your browser, allow redirection to the Hub, and it will launch the installation interface for this release.
     
  5. OptimaOne

    OptimaOne

    Joined:
    Jan 17, 2016
    Posts:
    1
    Who needs an apology. We need a viable solution.
     
  6. Slip_de_feu

    Slip_de_feu

    Joined:
    Jun 13, 2021
    Posts:
    8
    It works for me.

    If you are facing problems with Unity Hub about installing "Unity 2020.3.11f1 / Unity 2021.1.11f1 and android modules (SDK, NDK, OpenJDK)", here's my solution :

    1) Firstly, I would recommend to install "UnitySetup-Android-Support-for-Editor-2020.3.11f1.exe" to your Unity 2020.3.11f1's path or "UnitySetup-Android-Support-for-Editor-2021.1.11f1.exe" to your Unity 2021.1.11f1's path.
    You'll have a folder named "AndroidPlayer" in your path "{UNITY_PATH}\2020.3.11f1\Editor\Data\PlaybackEngines\" or "{UNITY_PATH}\2021.1.11f1\Editor\Data\PlaybackEngines\".

    2) In your "AndroidPlayer" folder, decompress these 3 7z files : "Android_NDK_19.0.5232133.7z", "OpenJDK_1.8.0_152.7z", "Android_SDK.7z"

    3) Run Unity 2020.3.11f1 / Unity 2021.1.11f1 and go to FILE > Build settings > Platform Android, click on "switch platform"

    4) You can now build your android apps in Unity 2020.3.11f1 / Unity 2021.1.11f1
     
    BKMAK likes this.
  7. BKMAK

    BKMAK

    Joined:
    Jun 29, 2021
    Posts:
    5
    Please remove the Hub. It was a mistake and we're all paying for it. Just give us the links.
    We don't need to keep this abusive relationship going.
     
  8. BKMAK

    BKMAK

    Joined:
    Jun 29, 2021
    Posts:
    5

    You sir are a Hero
     
  9. kesada7

    kesada7

    Joined:
    Jun 21, 2017
    Posts:
    14
    I wonder if for each version of unity that is installed in the hub it is necessary to re-download the android modules together with the sdk, ndk, etc. Are not compatible to use the directory of the sdk and ndk of a version of unity for another? When I try to point in the settings->preferences->external tools the directories of another version of unity does not work for me.