I am tryng out Android Studio instead of Eclipse. I install it and then start a completely new project and follow the wizard. I add no code of my own.
Then, I right-
Do sth. modification (just to gradle sync) over app level build.gradle and sync. Again, redo what you changed in build.gradle and sync. It should fix your problem.
I encountered this issue and tried everything including File
> Invalidate Caches
but nothing worked. The reason this issue was happening for me was because I had external projects that were using a different AppCompat version to my main gradle file.
After I updated all gradle files to be the same version the compile error went away.
File -> "Invalidate caches/Restart" This worked for me.
I'm using buck and it seems like by removing the /.idea/libraries
in your project folder and sync gradle again works for me.