Well, I ran into the same problem, I got a fix by adding the ndk path to the value of the path variable in the environment variable (system variable) that left my path variable like this

A dedicated path is the path to where I extracted my ndk. (A semi-colon indicates the end of the path).
Although I tried the option of adding NDK_HOME or ANDROID_NDK_HOME with the path to my ndk as a value that does not work, I think that these variables are intended for applications that use them, probably when getting system properties, variables or so on. But this will work with the command line
olyjosh
source share