This problem occurs when importing a project because you are using a low version of Android Studio and the source code corresponds to a high version of Android Studio.
BuildToolsVersion
solution: add:
buildToolsVersion property to built.gradle under app
BuildToolsVersion
solution: add:
buildToolsVersion property to built.gradle under app