

For some reason sdk, ndk and jdk are properly installed here.

For some reason the newer Unity Hub doesn't install Android SDK & NDK and OpenJDK for older Unity versions. I could reproduce this error when installing older Unity Versions (for me 2020.3.25f1) with Unity Hub 3.x. But to get the sdk you have to install android studio, then download all the individual packages using the sdk manager (which is a tiny hard to find icon!).Manually download sdk, jdk and ndk, untick the boxes and add the paths where you have put them. If nothing else works I think this would, but its not pretty. Maybe try uninstalling all versions of unity + unity hub, restart machine and start again installing unity hub. I'm really suprised uninstalling unity and reinstalling didnt fix it. I dont think you are having this bug tho, your problem sounds different. Then just retick the boxes to put it back the way it was originaly.(optional, save project and exit and repoen it).

untick the use version installed with unity box.At least it built in my case.There has been a bug in unity forever with those. You Android build should be done after that (apk or aab). If you get a warning about obsolete Android SDK, click on Update SDK button.ġ3. Come back to Unity Editor and try to build the project.ġ2. Do so if you see a warning about it in Unity Editorġ1. You may need to restart the PC to take these variables into effect. Add JAVA_HOME variables in both Users and System variables section. Copy the OpenJDK path from Preferences > External Tools.ġ0 Go to Windows Environment Variables. Locate your project in Unity Hub and click to load it in Unity Editor.ĩ. Expand it and select both sub-options SDK, NDK and OpenJDK.Ĩ. Then select this installation in the Hub and select Add Module. Add Unity Editor - 2020.3.20f1 release but DO NOT select Android module. Start Unity Hub - 2.4.5 as "Run as Administrator".Ĥ. This is the version which solved my issue.ģ. I have installed it first and problem has started from there. Disable any anti virus before installing Unity Hub or Unity Editor. After running pillar to post and reading hundreds of posts on many forums, I was able to resolve the issue.ġ. I believe many people might be facing this issue.
