I got the error when i create a new Project using android studio. below i attached a screenshots of error message..
We have to change the android sdk source in the project settings to our sdk where we have installed the android build tools.
I had the same issue and by doing this, it worked. Thanks.