Add Native Support On Eclipse package explorer, right click on the project, and select following menu Android Tools > Add Native Support Here, type to a form 'yuv420spDecoder' Now, a 'jni' directory has been created at the project root. Also auto generated Android.mk in 'jni'. LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := yuv420spDecoder LOCAL_SRC_FILES := yuv420spDecoder.cpp