Here are the steps for building Android apps using Debian's Android SDK on Stretch. sudo apt install android-sdk android-sdk-platform-23. export ANDROID_HOME=/usr/lib/android-sdk. In build.gradle, set compileSdkVersion to 23 and buildToolsVersion to 24.0.0. run gradle build. Mar 15, 2017