NDK not configured (although it is installed)—how to fix without Android Studio : <p>I am trying to build an Android project with Gradle. The project uses native code and thus needs NDK, which I have installed.</p>

<p>However, Gradle fails with the following error:</p>

<pre><code>&gt; NDK not configured. 
  Download it with SDK manager.
</code></pre>

<p>Android’s SDK Manager does not list NDK as an option. Besides, I have NDK installed on my box, so the error seems to be that Gradle isn’t finding it.</p>

<p>Most answers assume users to have Android Studio, which I do not have and do not want. Any way to fix this without?</p>
