Heyhey,
I’ve been cracking my head on this issue for hours now, was wondering if anyone had an idea.
I installed the Android modules today on 2020.3.21f1, and managed to build my APK a few times to test, when suddenly it just stopped working after like 5 or 6 builds. No settings changes or anything.
Now when I try to build I get greeted with the message.
“Android NDK not found or invalid. Please, fix it in Edit / Unity → Preferences → External Tools”
And when I go and check the preferences I see this.
When I try to manually browse to the NDK folder (I need the root NDK folder, right? Not platforms or build or anything funny inside it, right?) I get this message “Unable to detect NDK in the selected directory”.
I tried every suggestion I found online.
- I Tried restarting the editor and the computer.
- Tried changing the Unity version to 2019, and to 2021.
- Tried switching platform between PC and back to Android.
- Tried downloading the relevant NDK version (r19 for 2020, r21 for 2021) and linking to it (Still doesn’t let me select the folder no matter where I browse to).
- Tried replacing the ndk that came installed with with the Android module with the manually downloaded version.
- Tried selecting the NDK when placed in a directory path with no spaces.
I also couldn’t really find any relevant topics on Answers or the forums that were more recent than 2017-2019.
Nothing works and I’m completely out of ideas…
Please, if anyone has any ideas, do let me know.
Thanks