Problem building/running ndk-samples-main
Author: petermeter69Created Feb 3, 2026Updated Feb 3, 2026
Hello, I installed NDK and CMake 4.1.0 manually under SDK Tools (instead of latest 4.1.2.) Downloaded ndk-samples-main, and open this folder in Android Studio, more than a dozen modules get recognized. Try to build and run native-activity (or any other module). Problems: 1.Files in CPP folders do not get recognized by AS. 2.On building following error occurs:
[CXX1429] error when building with cmake using C:\Users\Admin\AndroidStudioProjects\ndk-samples-main\native-activity\app\src\main\cpp\CMakeLists.txt: -- The C compiler identification is Clang 19.0.1 -- The CXX compiler identification is Clang 19.0.1 -- Detecting C compiler ABI info -- Configuring incomplete, errors occurred!
What is wrong?
Source: android/ndk-samples