Question: how to use ndk in android studio?
Answer: With a project open, click Tools > SDK Manager.
Click the SDK Tools tab.
Select the NDK (Side by side) and CMake checkboxes. ... 
Click OK. ... 
Click OK.
When the installation is complete, click Finish.