Platform Apps in Android Studio

Even with all the current and upcoming changes in the Android compiler toolchains and build systems used for both applications and the platform, one common issue continues to come up amongst Android platform developer community: What is the best way to develop platform applications given the current state of the tools?