title: Android Studio failed build NDK project non-zero exit value
body: <p>I imported a project that I was working on from an Eclipse Android SDK environment to the new Android Studio.
  Trying to run the project I get this</p>
  
  <pre><code>Error:Execution failed for task ':app:compileDebugNdk'.
  &gt; com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'ndk/ndk-build'' finished with non-zero exit value 2
  </code></pre>
  
  <p>So first of all for me it's weird to see this error, because working in Eclipse Android SDK before, I ran ndk-build by myself which I still do. So is Android Studio running ndk-build for me now? Because when I run it in Terminal I have no problem at all and here it tells me bad exit-value.</p>
  
  <p>And then I searched on the internet and found a "quick fix", which is to create an empty .c file, because you can't build/run ndk project with no .c files. This, not surprisingly, does not work for me because we have plenty of .c files in the .jni folder.</p>
  
  <p>Just to mention I'm on a Macbook Pro under Yosemite, and the project should have no problems in itself.</p>
  
  <p>Thanks in advance for any help.</p>