Android Build Error:
The problem is that I HAVE installed the recommended tools from the Unity Hub and the project IS using that version (2019.4.4f1 with Android Support).
The folders where the OpenJDK and NDK are supposed to be in are EMPTY.
3 Answers
3If someone is facing this issue, I had it on the version 2019.4.12f1. I try to do every possible solution on the internet, so I post here what worked for me.
After days of SDK missing, reinstalling the version of unity several times, repathing and installing the SDK manually, I found out that the problem was the ANTIVIRUS that was blocking the file sdkmanager.bat.
So that was all, all was correctly installed but the antivirus eliminate that file, which make impossible for the SDK to work. Solution? Make this files permission to work on your computer or change the antivirus. Easy to apply but hard to find at the same time. Hope this helps for someone facing the same problem.
In the Preferences menu then External Tools check if Android paths are set correctly. JDK, path, Android SDK, NDK Gradle all of them
If is the first time you have downloaded unity with android and the paths are showing correctly in the External Tools menu then you need to first copy the path using the button at the right, then disable the recommended check boxes, paste the path then enable the recommended checkbox again.
should work, if not try without the checkbox but use the same paths that unity recommended
problem fixed here : Unity 2020 Android Support: Setup, SDK & NDK & JDK & Gradle - YouTube
Didn't work
– BonusB