Execution failed for task ': App:compiledebugndk ' .> com.android.ide.common.internal.LoggedErrorException:Failed to Run Command: c:\users\sodinochen\appdata\local\android\ndk-r10b\ndk-build.cmd NDK_PROJECT_PATH=null APP_ Build_script=c:\users\sodinochen\androidstudioprojects\hellojni\app\build\intermediates\ndk\debug\android.mk App_platform=android-21 ndk_out=c:\users\sodinochen\androidstudioprojects\hellojni\app\build\intermediates\ndk\ Debug\obj Ndk_libs_out=c:\users\sodinochen\androidstudioprojects\hellojni\app\build\intermediates\ndk\debug\lib App_abi=allerror Code: 2output: make.exe: * * * No rule to make target ' C:\Users\sodinochen\ Androidstudioprojects\hellojni\app\build\intermediates\ndk\debug\obj/local/armeabi-v7a/objs/hellojni/c_\users\ Sodinochen\androidstudioprojects\hellojni\app\src\main\jni ', needed by ' C:\Users\sodinochen\AndroidstudioProjects \hellojni\app\build\intermediates\ndk\debug\obj/local/armeabi-v7a/objs/hellojni/c_\users\sodinochen\ AndroidstudioprojeCTS\HELLOJNI\APP\SRC\MAIN\JNI\MAIN.O '. Stop.
This error is baffling. A few times toss, find a video out of the probable cause and solution: The source see YouTube video 02:50 start: https://www.youtube.com/watch?v=okLKfxfbz40#t=362 under WindowsNDKa bug that occurs when only one file is compiled, and the workaround is to add an empty util.c file.
[Android Studio] [NDK] Execution failed for task ': App:compiledebugndk '. Error Code:2