Install and configure NDK and CMake | Android Developers | Android Developers
If you don't understand the official document, just read the slobber version I wrote;
1. AS opens the dialog box for downloading SDK and NDK, as shown in the figure:
2. A very critical step. By default, the sub-items of the options are not expanded, so you need to check "Show Package Detail" in the lower right corner. The same is true for CMake, as shown in the figure:
3. Select your favorite version, click "Apply" or "OK" in the lower right corner, and you can start downloading and installing, as shown in the figure:
4. You can find the downloaded NDK version in the download directory, take mac as an example, as shown in the figure:
Well, you can have fun again.