Question: how to update ndk in android studio?
Answer: In Android Studio, go to Tools (top-menu item) > Android > SDK Manager.
Click SDK Tools tab.
Scroll down and you will see NDK as an option, with detail if an update is available.