To set the Android SDK home environment variable, do the following:
Read moreHow fix Android SDK not found at this location?
Configure -> Project Defaults -> Project Structure -> SDKs on left column -> Android SDK Home Path -> give the exact path as you did on local. properties and select Valid Target.
Read more