To solve this issue, please import the project into Android Studio, click
Build/Refresh Linked C++ Projects.
Android Studio uses the ninja build system
Android Studio, itself, uses ninja to build native codes. There is ninja binary under Cmake folder. If Android Studio cannot find ninja on Windows, it is the Android Studio issue. You should set an environment variable that specifies the path to ninja: