While installing Unity with UnityHub I checked the android support checkbox. Everything finished correctly but still I see the “no android module loaded” message in build settings. If I try to redownload a checked greyed out checkbox is shown with the Android support option, so I cannot uncheck/recheck it. Also I have uninstalled the editor and reinstalled it without success.
If I click the “Open download page” link I get an error:
The problem is that UnityHub is extracting Android Module related files directly to $HOME instead of "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer"
So I manually moved all those folders and files to the correct path (see above) and restarted Unity and this time I can switch platform correctly.
Involved folders and files:
Apk
Data
Source
Tools
Variations
Whitelists
ivy.xml
modules.asset
UnityEditor.Android.Extensions.dll
Found the clue while examining this file: https://public-cdn.cloud.unity3d.com/hub/prod/releases-linux.json