Unity project settings for android should also have version selector, and download button for any version, and reset button to revert back to factory setting sdk version. And so we might not need to download whole sdk again repeatedly and keep the duplicate sdk in difference folder on our disk If we have unity 2021.2 and want to update to 2021.3 or even 2022.1, it would more likely to use the same android sdk/ndk version. Then each unity can share the same android sdk/ndk repo (which could be many version)Īnd even using locally provided android manager, it could also be manipulated to download and store android sdk/ndk for specific version unity wanted to use. Direct NDK r23b download links here (it's not listed on their site anymore but DL works):Ĭlick to expand.What I mean is, unityhub can have their own android studio, but it should be centralized in the hub and load android sdk/ndk into the same places. Basically right now there's no Hub version that works out of the box with latest 2022.2 alphas but if you need to build for Android, you should use Hub 3.1 or older and just swap NDK to newer version.įor NDK I just used the newer version provided by that Hub 3.2 (manually copied the folder from \Editor\Data\PlaybackEngines\AndroidPlayer) but I suppose you could just manually download it and use that one instead as well so you don't have to deal with that Hub beta (which you shouldn't since it breaks rest of the android packages now). Basically for 2022.2.0 a16 and a17 you only ever need to update NDK and not update Android SDK or OpenJDK but if you use Hub 3.2 beta, it actually updates these all and that makes these incompatible with current 2022.2 alphas. Meanwhile please don’t depend on Hub to install SDK, NDK and JDK. We will update this post once dependencies provided by the Hub will match tools versions expected by the latest Unity 2022.2 beta release. In upcoming days, Hub version 3.2 should be released which will install NDK r23b, JDK 11 and updated SDK, however Unity will start accepting new SDK and JDK only during later beta releases. This is fine for SDK and JDK since current Unity 2022.2 versions still expect old SDK and JDK, but latest 2022.2 alpha versions already require NDK r23b. Currently available Hub versions install the same dependencies as for Unity 2022.1. JDK will be upgraded to version 11.ĭuring the latest alpha and a couple of upcoming beta releases, Hub can install incorrect tools versions when installing Android support. SDK will be upgraded to depend on cmdline-tools version 6.0 (instead of deprecated “tools” component) and Unity will require to have build-tools and platform-tools versions 32.0 or newer installed. We are upgrading Android NDK, SDK and JDK used in Unity 2022.2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |