skip to Main Content

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

2

Answers


  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.

    Login or Signup to reply.
  2. Android->local.properties and add ndk version

    UsersPCAppDataLocalAndroidSdkndkndkversion

    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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search