Root Caused:
sdk.dir is missing. Make sure to generate local.properties using ‘android update project’ or to inject it through the ANDROID_HOME environment variable.
Solution:
Move to root director of project and type follow command
android update project -p .