I had exactly the same problem. I assume this comes from a combination of inappropriate parameters in the class and your xml resources. Maybe this will help (for me it was):
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.1' } } apply plugin: 'com.android.application' ... dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:23.0.0' compile 'com.android.support:design:23.0.0' compile 'com.android.support:cardview-v7:21.0.3' compile 'com.android.support:recyclerview-v7:21.0.3' }
Give build.grade 1.1.1 too (just in case)
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.1' } } allprojects { repositories { jcenter() } }
Hopefully the next sync, cleanup, and rebuild will work (or trigger a meaningful error message like "color-res blabla not found").
Btw: from time to time my IntelliJ tunes to other Java configs (for example, Java8 with lambdas) - just in case: Remember to check if the SDK of the project is configured correctly (File> Project-structure> project> select the SDK).
Martin Pfeffer
source share