'How to set NDK on android studio after downloading it

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?

NDK Location

Disable Button



Solution 1:[1]

I had the same problem but it was on windows, the button for setting ndk location was disabled and I solved it by adding

ndk.dir=C\:\\Users\\user_name\\AppData\\Local\\Android\\Sdk\\ndk\\24.0.8215888

in local.properties and I syncing it. The last part (24.0.8215888) might be different for you depending on the installed ndk version.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1