As your Error say that
SDK location not found. Define location with sdk.dir in the
local.properties file or with an ANDROID_HOME environment variable
to solve it you have to create it.
Note : This file in automatically createed. but as you can say that
the file is not found. Then you have create it .
The local.properties
file goes in the project's root level, in the same folder as the gradlew
, gradlew.bat
, settings.gradle
and other files.
in local.properties
contain this thing.
sdk.dir=C\:\\Program Files (x86)\\Android\\android-studio\\sdk
Note : the sdk.dir= reference to the location of the Android Studio
SDK installation (which may be different on different machines