title: Android NDK: Missing LOCAL_MODULE before including BUILD_SHARED_LIBRARY
body: <p>I'm trying to setup a test NDK project in Eclipse/ADT following <a href="http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/" rel="nofollow">this tutorial</a>.</p>
  
  <p>I've created a fresh new Android project "Test1", in which I've added these 2 files:</p>
  
  <pre>c:\Workspace\Test1\jni\Android.mk
  c:\Workspace\Test1\jni\ndkfoo.c</pre>
  
  <p>This is in <code>Android.mk</code>:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  LOCAL_MODULE    := ndkfoo
  LOCAL_SRC_FILES := ndkfoo.c
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>But when I try to compile it, I get this error:</p>
  
  <pre>c:\Workspace\Test1\jni>ndk-build
  c:/android-ndk-r10d/build/core/build-shared-library.mk:23: *** Android NDK: Missing LOCAL_MODULE before including BUILD_SHARED_LIBRARY in c:/Workspace/Test1//jni/Android.mk    .  Stop.</pre>
  
  <p>But I do have a <code>LOCAL_MODULE    := ndkfoo</code> clause in <code>Android.mk</code>, so I don't understand why I am getting this error!</p>