-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2019.x Android package: Install SDK & NDK Tools #359
Comments
Furthermore, the only way to install the supported Android SDK & NDK is from the Hub at Unity installation time from version 2019 onwards. |
Same problem here... As you also said they hide the specfic NDK version so we can't install it manually neither... |
You can now at least install those packages using UnityHub CLI, although the tool is very lacking and error prone if trying to install multiple packages at a time. |
could you elaborate this? do you means we can run /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub from command line like UnityEditor? |
I'm not sure about the CLI side of things, but if you use UnityHub UI to install the packages you can get similar run ability of different versions of editors to u3d by doing the following, although it misses out on some nice log culling features in u3d
|
Unity Hub introduced the ability to install Unity packages from command line(including ndk and skd), although it's a feature in preview, it's fully working: https://unity3d.com/hub/whats-new See version 2.1.0 notes. |
@sp-ricard-valverde oic thanks! I missed the update and temporary using https://github.com/sttz/install-unity, which can be installed via homebrew, but it would be nicer if official CLI installer is provided 👍 |
Before Unity showed a button on editor preferences to download the exact version of the NDK, now since it allows you to install from the hub the NDK does not even appear which version to use if you want to download it on your own. That's why it's very important that from u3d the NDK module appears as downloadable and installable so we can get the expected version. |
Hey @bdominguez! We agree that it's an important feature, and I'm working on it right now 😄 See https://github.com/niezbop/u3d/tree/feature/installer/sdk_ndk This branch should expand upon the existing modules listing by using the ones the hub offer, including the SDK and NDK plus their tool. It's still WIP, but I should be able to open a PR and iterate upon it. This will likely be the last feature that we implement before rolling out the next release, so this should come in your hands in the very near future! In the mean time, Unity documents which NDK you should be running in case you didn't know. |
Thanks @niezbop I didn't know! |
Hey everyone! Just to keep you up-to-date, the feature is nearing completion!
There are of courses a few things to tweak still, and we have to iterate just a bit on a it yet, but if you want to give it a go, and try if it works on your machine you can build it locally (clone the repo and run ./build.sh). Any feedback appreciated! |
Great job @niezbop |
Hey all. This has been released as part of u3d 1.2.0! Thanks once again for your patience on this! |
Issue Checklist
u3d --help
Issue Description
Starting from Unity 2019, the Unity Hub offers the possibility to install 'Android SDK & NDK Tools' along with the Android Build Support package. This makes the provisioning process much more easier as there's no need to open the Editor and download those packages separately.
When listing the packages for Unity 2019(u3d available -p) versions there's no SDK & NDK available, not are they installed when installing the 'Android' package along the Editor(u3d install 2019 -p Unity,Android).
It would be great to have this as u3d could be enough to provision an Android Unity build machine for CI environments.
The text was updated successfully, but these errors were encountered: