For some odd reason I’m unable to set Android NDK location, I download it and now I’m unable to set the location. The button is disabled and really don’t know what to do. Is it possible to set the location using the command line on MacOS?
In order to download desired ndk version in android studio, go to tools->sdk manager->sdk tools (enable show package details) -> NDK and download the desired version.
2
Answers
I had the same problem but it was on windows, the button for setting ndk location was disabled and I solved it by adding
in local.properties and I syncing it. The last part (24.0.8215888) might be different for you depending on the installed ndk version.
Android->local.properties and add ndk version
for mac users –
/Users/starka/Library/Android/sdk/ndk/24.0.8215888
In order to download desired ndk version in android studio, go to tools->sdk manager->sdk tools (enable show package details) -> NDK and download the desired version.