Android.mk not linking system library libandroid.so
<p>In my android 2.3 project , i am using the native asset manager. In the docs it says add the 
LOCAL_LDLIBS    += -landroid to the android.mk file which I have</p>

<p>but the linker is giving the following error saying it can't find it</p>

<blockquote>
  <p>/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -landroid</p>
</blockquote>

<p>I've compiled a sample in the NDK with the same library and that works so I can't understand why a different project is giving this problem</p>
