Error While Executing Process .../ndk-bundle/ndk-build With Arguments {ndk_project_path=null
Solution 1:
So the bottom line is, when you see this message in Android Studio,
Errorwhile executing process …/ndk-bundle/ndk-build witharguments {…}
and you don't know what really caused the error, you should try to run exactly same command with exactly same arguments in terminal. The output may give you a reasonable hint.
Specifically in this case, the error message from Android NDK explained which file (/home/user/Android/AndroidStudioProjects/JNIINVOKEFFMPEG1/app/src/main/jni/Android.mk
) and which line (14) was in trouble, and even explains what you can do to fix:
define NDK_MODULE_PATH in your environment to let NDK find the module
ffmpeg/android/arm
Solution 2:
This solution will work in android studio.
In packages,select the folder which has ndk files , delete the intermediates generated (including .build and .externalndkbuild)and clean the project if requires try invalidate cache and restart in android studio
Solution 3:
Launched in the terminal. Got this answer:
Android NDK: Could not find application project directory!
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
As a result, the reason was Maximum Path Length Limitation (260 characters).
By adding this code to build.gradle (app), the project builds:
allprojects {
if (Os.isFamily (Os.FAMILY_WINDOWS)) {
buildDir = "$ {projectDir} /../../../../ build"
}
}
Post a Comment for "Error While Executing Process .../ndk-bundle/ndk-build With Arguments {ndk_project_path=null"