Install android-sdk on Debian 10

Install Java-8

sudo apt install apt-transport-https ca-certificates wget dirmngr gnupg software-properties-common
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
sudo apt update && sudo apt install adoptopenjdk-8-hotspot

Install Native Script

Follow Advanced Setup Steps from the official docs except of installing openjdk-8-jdk as we already done this in the previos step.

cd $ANDROID_HOME/tools/bin
./sdkmanager "system-images;android-25;google_apis;x86"
./sdkmanager "system-images;android-26;google_apis;x86"
./sdkmanager --licenses

./avdmanager create avd -n test -k "system-images;android-26;google_apis;x86"

Run the app

tns run android

Styles

<https://docs.nativescript.org/ui/theme>