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 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.