“C_INCLUDES must be under the source or output directories” error can indicate the the sources not included under LOCAL_C_INCLUDES
1 2 3 LOCAL_C_INCLUDES += \ $(LOCAL_PATH) \ $(LOCAL_PATH)/src
But at the same time be aware of symlinks! The problem can be if the folder created with symlinks! So aware of them.