Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug install 2021.3.6f1 ver with Android build support but always no gradle tools

Discussion in 'Unity Hub' started by grezodz, Jul 10, 2022.

  1. grezodz

    grezodz

    Joined:
    Mar 25, 2016
    Posts:
    7
    Hi all,
    I use unity hub installed 2021.3.6f1 many times,
    and every time i have check the android build support module,
    then i found it's never install the gradle tools .

    i mean the directory
    D:\Unity\2021.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools
    not even exist every time.
    upload_2022-7-10_7-23-45.png

    then i create a new virtual machine by vmware ,
    and install 2021.3.6f1 in it.

    i found it's totally fine,
    all of the android build support tool has installed,
    and i can build apk normally.

    did any one knows WHY?
    what kind of reason cause that .
     
  2. aliasgar5253

    aliasgar5253

    Joined:
    Nov 1, 2020
    Posts:
    4
    Unity has changed the Android Tools path but in preferences, it's still the old path. This is a Unity Bug.

    You can do a workaround for now by copying content from
    (Your editor's location)
    C:\Program Files\Unity\Hub\Editor\2021.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\cmdline-tools\2.1 Folder and make a new folder on C:\Program Files\Unity\Hub\Editor\2021.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\
    named Tools and paste it in there. And restart Unity and try building again, it will work.
     
    plotlessplot and grezodz like this.
  3. grezodz

    grezodz

    Joined:
    Mar 25, 2016
    Posts:
    7
    thank you very much