8 October 2020

Andriod NDK: How to use CMake and ndk-build together in one project

Android NDK currently provides us with at least two ways to build native libraries: CMake and ndk-build. But if you specify two paths to the build scripts CMakeLists.txt and Android.mk in the build.gradle file, then Gradle will show an error ‘More than one externalNativeBuild path specified’ and will not compile anything. I will show one of the possible ways to solve this problem.

© 2011-2020, Boris Timofeev

Powered by Hugo & Kiss.