After some deliberation, I decided to go with the 'android-library' plugin. It may be overkill considering how little of the framework the Keen library is using, but it's probably the "right" way to interop. Please feel free to double-check how I've implemented it in the latest commits.