1. The path of the NDK is not set
Error:Execution failed for task ‘:library:ndkBuild‘. > A problem occurred starting process ‘command ‘null/ndk-build‘‘
Configure the installation path for the NDK.
1) Set Environment variables: The new ANDROID_NDK_HOME
key value is the Android NDK installation directory, added at the end of Path ;%ANDROID_NDK_HOME%
.
or 2) in the As Project structure settings, such as:
2. The ndk-build command called does not
Error:execution failed for task ': Library:ndkbuild ' .> A problem occurred starting process ' command ' D:\androidDev\andr Oid-ndk-r10e/ndk-build "
Find the reason on StackOverflow, in the Build.gradle file
Taskndkbuild (type:exec,description: ' Compile JNI source via NDK ') { defndkdir =project.plugins.findplugin (' Com.android.library '). Sdkhandler.ndkfolder workingdir "$projectDir/src/main/jni" commandLine "$ndkDir/ Ndk-build "}
CommandLine "$ndkDir/ndk-build" This line should be used under Windows Ndk-build.cmd (Project has encountered)
3. Unable to find the Boost library file
Description in the Project Readme
Manual Buildmake Sure$android_ndk_homeis correctly set to the root directory of your NDK installation. Also, if Boost lives in a non-standard directory (or your re on Windows) you'll need to Set$bypass_include_path to its pare NT directory.
Set Environment variables: Add a new BYPASS_INCLUDE_PATH
installation directory with the Boost, and add it at the end of Path ;%BYPASS_INCLUDE_PATH%
.
Android Studio compiles open source projects (including NDK development) Common error