You need to add

LOCAL_LDLIBS := -llog

to Android.mk