Tony Ngomana
Tony Ngomana

Reputation: 67

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

Upvotes: 0

Views: 2914

Answers (2)

Shivani Verma
Shivani Verma

Reputation: 31

Android->local.properties and add ndk version

Users\PC\AppData\Local\Android\Sdk\ndk\ndkversion

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.

Upvotes: 0

Bereket Kassahun
Bereket Kassahun

Reputation: 51

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.

Upvotes: 1

Related Questions