Right-click on the project> properties> android> for the purpose of building the project: select android 5.0 with an API level of 21 or select the same version of Android with an api level that is installed in android- support-v7-appcompat.
The api level and Android version should be the same in android-support-v7-appcompat, as well as in your project.
Sachin kundapur
source share