File > Settings >Languages & Frameworks >Android SDK > SDK Tools> check Android Command line SDK Tools.