I just updated my libraries when Android 5.0 got lunched today
one of the files that got updated is android-support-v7. after that I kept getting these errors
If using eclipse make sure you have updated these tools from SDK Manager-
After updating all of them import v7 project and open the project.properties file of the android-support-v7-appcompat and change the target from target=android-19 to target=android-21 .
Clean the project and you are good to go.
My solution to a similar error;
1) I installed 21 api with sdk manager.
2) I changed my project's build target to 21. and I changed v7-appcompat library build target to 21.
and finally I think support library projects (v7-appcompat or v7-gridlayout) must be in workingset.
In order to switch to the API v21 versions of the compat and support libraries, you also have to switch to compileSdkVersion 21 and buildToolsVersion '21.0.1'.
In Android Studio, you set these in build.gradle. In ADT, I don't remember how to set them.
Create a new work space after that try to create a new android project with min sdk 2.3 then it will automatically import your appcompact lib after that it will work thats work with me
Modify the project.properties
file, which has:
target=android-19
to
target=android-21
after changes above close project then open and clean