Latest Hub 3.2.0 in combination with Unity 2021.3.6 can’t build for Android because there is a missing Tools folder inside *Editor\Data\PlaybackEngines\AndroidPlayer* so Unity can’t find gradle.
That folder is simply not created during the installation. The workaround is to copy the whole Tools folder from the previous Unity version or if you don’t have the previous version then do what @Zeeppo-Games says in the post below .
I had the same issue, looks like the gradle folder has changed from AndroidPlayer\SDK\Tools to AndroidPlayer\SDK\cmdline-tools but the path still the old one inside Unity preferences.
Right, this is it. I was able to build it. Copy all folders and files inside cmdline-tools, create a new folder called Tools inside AndroidPlayer folder and paste there.
Unity guys, you’ve forgotten to change the paths in AndroidBuildPostProcessor!!!
Edit: or maybe this is something related to Android SDK 33, the one I’m using to build this version of the game.
I had the same issue iMobCoding reported at the beginning of the thread and following his workaround helped me in “unlocking” the next problem. I could solve this by following Zeeppo-Games’s hint.
So both helped me a lot, thanks to both of you!
Regarding the QA of Unity. That seems really sloppy to me… .
Many studios work on a project for months-years, so it depends on your project. And doing something for your future projects or future developers can be nice for 5 minutes of work