I am trying to build the Android project that uses appcompat_v7 library.
For that, I created my project through Eclipse -> New Android Sample Project and added my cu
Try this: https://www.youtube.com/watch?v=HpXoCfoX_QY
Also, make sure your "appcompat_v7" library is open and you see the folders.
When using the the appcompat_v7 library the targetSdkVersion should be the same number as the major Android Support Library version number. E.g. on my SDK installation the version number is 23.0.1 and so my targetSdkVersion should be 23 (Android 6.0)
Check Build Target of your project and appcompat_v7 library project. They should be same, if your project has lesser Build Target than you get this error and won't be able to build.
To fix the problem in Eclipse go to Project->Properties->Android (Project Build Target) and select equal to your appcompat library project.
Repeat the above steps for your project.
Check if Android Support Library and Android SDK Build-tools and Android SDK Platform-tools are updated. I updated Android Support Library and not Build-tools and this error appeared. After updating Build-tools it solved.
I just ran into a similar issue when upgrading appcompat-v7 from 22.2.0 23.1.0. Updating compileSdkVersion to 23 fixed it.