Problem building/running ndk-samples-main

Open
#1,166 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake, cpp

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.

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?

Image
Dominant language
C++
Stars
10.5k
Forks
4.2k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/ndk-samples

All issues in android/ndk-samples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.