Please notice that from the error message:
gmake: /Users/sk/build/core/build-local.mk: No such file or directory.
The build/core/builid-local.mk is actually in the ndk's root directory, why is it listed as the /Users/username/build…?
I've encountered the same error on my Macbook. I've put the ndk inside /Applications/Android Studio.app directory, since there is a space between the name, somehow the tool in ndk can't resolve the implied path. That's why the error message is printed.
Later I renamed Android Studio.app to Android-Studio.app and thus resolved the issue.
/Users/sk/Desktop/JNIExample/jni' gmake: /Users/sk/build/core/build-local.mk: No such file or directory gmake: *** No rule to make target
/Users/sk/build/core/build-local.mk'. Stop. gmake: Leaving directory `/Users/sk/Desktop/JNIExample/jni' NOTE: The jni folder contains the Application.mk file – Eskew