I ran into the same problem, here is what I did:
1- Updated all project dependencies on the latest version (AppCompat, SupportV4, cardview, etc.), which are 22 +
2- Updated root projects build.gradle to use the latest version of gradle:
classpath 'com.android.tools.build:gradle:1.2.3'
3- In the gradle -wrapper.properties file, I used the latest version of gradle, which is 2.4
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
Mohammadreza
source share