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.
![alt text][1]
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".
![alt text][2]
I tried every suggestion I found online.
1. I Tried restarting the editor and the computer.
2. Tried changing the Unity version to 2019, and to 2021.
3. Tried switching platform between PC and back to Android.
4. 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).
5. Tried replacing the ndk that came installed with with the Android module with the manually downloaded version.
6. 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
[1]: /storage/temp/192544-ndk.png
[2]: /storage/temp/192545-ndk3.png
↧