Take a look at your build.gradle (Module:<app-name>) file. This file should contain the line buildToolsVersion . Make sure you and others have this version of the build tools installed.
Also make sure that the build tools version is still available from the SDK manager.
I had this problem while working on a project for friends. He used a version of the building tools that I could no longer get. I think this is because things are being updated and replaced.
We fixed this by installing the latest build tools.
I also ran into this problem when I updated Android Studios and the build tools version was no longer available.
For compileSdkVersion you can go Tools > Android > SDK Manager . This will compileSdkVersion up a window that allows you to manage your compileSdkVersion and your buildToolsVersion .
You can also select the link in the lower left corner (Launch Standalone SDK Manager), this will give you a little more information.
source share