xxxxxxxxxx
Step1: Check whether all your "SDK Platforms" and "SDK Tools" is installed and Updated"
(in android studio SDK manager)
Step2: Create "local.properties" file in android folder and paste the following
sdk.dir = /Users/USERNAME/Library/Android/sdk