You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android installer does not download the SDK, NDK and OpenJDK folders to PlaybackEngines/AndroidPlayer #239
Installing the Android module with Unity Hub and Install-UnitySetupInstance yield different results. Notably, the following folders are missing in Editor\Data\PlaybackEngines\AndroidPlayer with the latter:
UnitySetup predates UnityHub and discovers downloads by scanning the releases websites, downloads the components and invokes them itself. The Unity installer used to bundle the Android tools in with the component, but that was split at some point to avoid duplicates of the tools if you don't need them (you can set the paths for you Android build tools inside Unity).
I'd love to install the Android tools from UnitySetup, but installing Android requires accepting the license agreement and I'm not sure how best to go about that in an automated fashion that doesn't run afoul of some policy so I've avoided it so far.
So I know UnitySetup predates the UnityHub, but can it use the UnityHub?
Apparently, "Unity Hub.exe" has a bunch of commands. I just got this in email when I complained to Unity that wasn't a way to headlessly install Android JDK/SDK/NDK tools:
The hub does support a command line to do the full installation, including Child Modules (Open JDK + Android SDK & NDK), this would be the command to install Android + the JDK & NDK to an existing Unity installation:
I think moving to UnityHub would be a great change, but also a large one that will need lots of testing for all the use cases included in UnitySetup, e.g. the DSC resources.
I'm not sure if the Hub comes along with Unity if it's installed with UnitySetup, we'd have to test that from a clean machine. I suspect Android could be installed after the original install, but it'd be another thing to test.
Same problem, my android build requires NDK and installing via following wont install NDK Install-UnitySetupInstance -Installers (Find-UnitySetupInstaller -Version '$(unitygetprojectversion.projectVersion)' -Components 'Windows', 'Android') -Verbose John Hagala (@mandalorianbob) did you test unity hub method with NDK?
Activity
jwittner commentedon Aug 4, 2022
UnitySetup predates UnityHub and discovers downloads by scanning the releases websites, downloads the components and invokes them itself. The Unity installer used to bundle the Android tools in with the component, but that was split at some point to avoid duplicates of the tools if you don't need them (you can set the paths for you Android build tools inside Unity).
I'd love to install the Android tools from UnitySetup, but installing Android requires accepting the license agreement and I'm not sure how best to go about that in an automated fashion that doesn't run afoul of some policy so I've avoided it so far.
Open to ideas though!
mandalorianbob commentedon Aug 19, 2022
So I know UnitySetup predates the UnityHub, but can it use the UnityHub?
Apparently, "Unity Hub.exe" has a bunch of commands. I just got this in email when I complained to Unity that wasn't a way to headlessly install Android JDK/SDK/NDK tools:
Is the Hub installed with the Unity installation? Could Android be added on after the original install?
jwittner commentedon Aug 24, 2022
I think moving to UnityHub would be a great change, but also a large one that will need lots of testing for all the use cases included in UnitySetup, e.g. the DSC resources.
I'm not sure if the Hub comes along with Unity if it's installed with UnitySetup, we'd have to test that from a clean machine. I suspect Android could be installed after the original install, but it'd be another thing to test.
khayamgondal commentedon Nov 16, 2022
Same problem, my android build requires NDK and installing via following wont install NDK
Install-UnitySetupInstance -Installers (Find-UnitySetupInstaller -Version '$(unitygetprojectversion.projectVersion)' -Components 'Windows', 'Android') -VerboseJohn Hagala (@mandalorianbob) did you test unity hub method with NDK?