Problem building/running ndk-samples-main
- Dominant language
- C++
- Stars
- 10.5k
- Forks
- 4.3k
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Research direction
Start with the native-activity module and its app/src/main/cpp/CMakeLists.txt, then reproduce the build in Android Studio using the reported NDK and CMake versions. Check the complete CMake configuration output beyond the CXX1429 summary; the issue is resolved when the C++ files are recognized and the module configures and builds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100