After a few days with struggling, I found that the gstreamer tutorial docs have been updated to use the gradle build system. You can see a full working example in https://cgit.freedesktop.org/gstreamer/gst-docs/, see commit from 14 June 2018, 'Android tutorials: add gradle build system'