In order to compile for android the following setup is prerequisite:
$ ls ..
android-ndk-r16 # android NDK
SDL2-2.0.7 # SDL source
SDL2_image-2.0.2 # SDL image source
sudal # the project folder; its name doesn't matter
tools_r25.2.5-linux # android SDK