Here's my build.gradle file. After updgrading to AS 1.5.1 and attempting to compile/sync, I got error on last line, but program executes fine:
apply plugin: 'com.android.application'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
This support library should not use a different version (22) than the
defaultConfig cannot be applied to groovy.lang.Closure ... assignment with incompatible types
Yes, messages like
...cannot be applied to groovy.lang.Closure can be ignored, but if you want to fix them here are a few answers that will help you:
Quick fix - just a small change in settings.
Proper and lengthy fix - creating a top level
Missed this earlier but thanks to Gabriele for pointing it out in the comment below:
The warning about the api to be used to compile the project, should not be ignored. You have to compile with the same version of the maior release (in this case 22) otherwise you can have issue. For example using the appcompat v22 you would have errors using api 19