The problem was in the libraries order. The correct order is:
LOCAL_STATIC_LIBRARIES := libopencv_calib3d opencv_features2d opencv_flann opencv_imgproc opencv_core
So the main principle is you have to declare libraries in reverse order of their dependency (e.g. *opencv_imgproc* depends on *opencv_core* and *opencv_features2d* depends on *opencv_imgproc* and so on).