Android SDK update using command line tools

In this post i will describe how to update android sdk using command line tools.First make sure $ANDROID_HOME/tools/bin contains sdkmanager. If exists run this script it will update android platforms and build tools.

cd $ANDROID_HOME/tools/bin

./sdkmanager — list

./sdkmanager “platforms;android-26” “build-tools;25.0.2”